:root {
  --navy: #101c3a;
  --navy-light: #192b52;
  --blue: #315cf5;
  --blue-light: #edf2ff;
  --yellow: #ffd43b;
  --green: #16a765;
  --background: #f5f7fb;
  --white: #ffffff;
  --text: #172033;
  --muted: #7b8498;
  --border: #e9edf4;
  --shadow: 0 8px 30px rgba(20, 35, 70, .06);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "DM Sans", "Segoe UI", sans-serif;
  background: linear-gradient(180deg, #f8f9ff 0%, #f4f7ff 100%);
  color: var(--text);
}

a { color: inherit; text-decoration: none; }

.header {
  height: 78px;
  background: var(--navy);
  padding: 0 6%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 5px 25px rgba(0,0,0,.12);
}

.logo {
  color: white;
  font-family: 'Manrope', sans-serif;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -1.5px;
  line-height: 1;
  flex-shrink: 0;
}

.logo span { color: var(--yellow); }

.logo small {
  display: block;
  color: #aebbd6;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 2px;
  margin-top: 6px;
}

.header-search {
  display: flex;
  align-items: center;
  background: white;
  height: 45px;
  border-radius: 9px;
  max-width: 570px;
  width: 100%;
  overflow: hidden;
}

.header-search span {
  padding: 0 13px;
  color: #667085;
  font-size: 25px;
}

.header-search input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: none;
  outline: none;
  font-size: 13px;
  background: transparent;
  color: var(--text);
}

.header-search button {
  height: 100%;
  padding: 0 20px;
  border: none;
  background: var(--blue);
  color: white;
  font-weight: 700;
  cursor: pointer;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 17px;
  white-space: nowrap;
}

.header-link {
  color: white;
  font-size: 13px;
  font-weight: 600;
}

.account-btn {
  background: rgba(255,255,255,.1);
  color: white;
  padding: 11px 15px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
}

.publish-btn {
  background: var(--yellow);
  color: var(--navy);
  padding: 12px 18px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
}

.navigation {
  height: 54px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 38px;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  white-space: nowrap;
  padding: 0 20px;
}

.navigation a {
  height: 100%;
  display: flex;
  align-items: center;
  color: #677187;
  font-size: 13px;
  font-weight: 700;
  position: relative;
}

.navigation a:hover,
.navigation a.active {
  color: var(--blue);
}

.navigation a.active::after {
  content: "";
  position: absolute;
  height: 3px;
  width: 100%;
  background: var(--blue);
  bottom: 0;
  left: 0;
  border-radius: 5px;
}

.legal-shell {
  max-width: 1100px;
  margin: 36px auto 70px;
  padding: 0 20px;
}

.legal-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 42px clamp(20px, 5vw, 64px);
}

.legal-header {
  margin-bottom: 28px;
}

.eyebrow {
  display: inline-block;
  background: var(--blue-light);
  color: var(--navy);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.legal-header h1 {
  margin: 18px 0 12px;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 1.1;
  color: var(--navy);
}

.legal-header p {
  margin: 0;
  max-width: 720px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 1.04rem;
}

.legal-header .legal-updated {
  margin-top: 12px;
  font-size: 0.9rem;
}

.legal-section {
  padding-top: 24px;
  margin-top: 24px;
  border-top: 1px solid var(--border);
}

.legal-section h2 {
  margin: 0 0 12px;
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  color: var(--navy);
}

.legal-section p,
.legal-section li {
  color: var(--text);
  line-height: 1.75;
  font-size: 1rem;
}

.legal-section ul {
  margin: 10px 0 0;
  padding-left: 22px;
}

.legal-section ol {
  margin: 10px 0 0;
  padding-left: 22px;
}

.legal-section a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-section li + li { margin-top: 8px; }

.footer {
  background: #0d1730;
  color: rgba(255,255,255,.8);
  padding: 42px 6% 28px;
  margin-top: 60px;
}

.footer-main {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 30px;
  align-items: start;
}

.footer-brand {
  max-width: 320px;
}

.footer-logo {
  display: inline-block;
}

.footer-brand p {
  margin: 18px 0 0;
  line-height: 1.8;
  color: rgba(255,255,255,.7);
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-column h4 {
  margin: 0 0 8px;
  color: white;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-column a {
  color: rgba(255,255,255,.72);
  font-size: 0.95rem;
  transition: opacity .2s ease;
}

.footer-column a:hover {
  opacity: 1;
  color: white;
}

.footer-bottom {
  max-width: 1200px;
  margin: 26px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: rgba(255,255,255,.7);
  font-size: 0.9rem;
}

.footer-bottom p {
  margin: 0;
}

@media (max-width: 820px) {
  .header {
    flex-wrap: wrap;
    justify-content: center;
    height: auto;
    padding: 18px 20px;
  }

  .logo {
    width: 100%;
    text-align: center;
  }

  .header-search {
    width: 100%;
    max-width: none;
  }

  .header-actions {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .navigation {
    gap: 12px;
  }
}
