*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream: #FDFBF7;
  --white: #FFFFFF;
  --ink: #1A1A2E;
  --ink-soft: #4A4A6A;
  --teal: #2EC4B6;
  --teal-dk: #1FA99C;
  --coral: #FF6B6B;
  --amber: #FFB830;
  --violet: #7B5EA7;
  --mint: #D8F5F2;
  --blush: #FFF0EE;
  --lavender: #EEE8F8;
  --sand: #FEF5E2;
  --border: #E8E4F0;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 24px rgba(26,26,46,.07);
  --shadow-hover: 0 8px 40px rgba(26,26,46,.14);
  --font-head: 'Nunito', sans-serif;
  --font-body: 'Nunito', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink);
  line-height: 1.65;
  background:
    radial-gradient(circle at 9% 6%, rgba(46,196,182,.18), transparent 30%),
    radial-gradient(circle at 92% 10%, rgba(255,107,107,.10), transparent 28%),
    linear-gradient(180deg, #FDFBF7 0%, #F7FCFA 52%, #FDFBF7 100%);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253,251,247,.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
}

.nav .container {
  max-width: none;
  padding-left: 28px;
  padding-right: 28px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: -.2px;
  color: var(--ink);
}

.nav-logo-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: block;
  background-image: url("apple-touch-icon.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 10px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  display: inline-block;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  font-size: .88rem;
  font-weight: 700;
  transition: background .18s, color .18s;
}

.nav-links a:hover {
  background: var(--mint);
  color: var(--teal-dk);
}

.nav-account {
  background: var(--teal) !important;
  color: var(--white) !important;
  padding: 9px 18px !important;
  border-radius: 100px !important;
}

.nav-account:hover {
  background: var(--teal-dk) !important;
  color: var(--white) !important;
}

.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.nav-mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

.legal-hero {
  position: relative;
  overflow: hidden;
  padding: 58px 0 28px;
}

.legal-hero::before,
.legal-hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.legal-hero::before {
  width: 260px;
  height: 260px;
  left: -110px;
  top: 22px;
  background: rgba(46,196,182,.16);
}

.legal-hero::after {
  width: 220px;
  height: 220px;
  right: -82px;
  top: 6px;
  background: rgba(255,184,48,.14);
}

.legal-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 920px;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--teal-dk);
  font-family: var(--font-head);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

h1 {
  max-width: 780px;
  color: var(--ink);
  font-family: var(--font-head);
  font-size: clamp(2.25rem, 5vw, 3.4rem);
  font-weight: 900;
  line-height: 1.08;
}

.effective {
  margin-top: 10px;
  margin-bottom: 24px;
  color: var(--ink-soft);
  font-size: 1rem;
  font-weight: 800;
}

.legal-main {
  max-width: 920px;
  margin: 42px auto 76px;
  padding: 0 24px;
}

.card,
.policy-card {
  position: relative;
  overflow: hidden;
  background: rgba(255,255,255,.92);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: clamp(24px, 5vw, 46px);
}

.card::before,
.policy-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background: linear-gradient(90deg, var(--teal), var(--amber), var(--coral));
}

.summary {
  margin: 0 0 28px;
  padding: 18px 20px;
  background: linear-gradient(135deg, #EFFAF8 0%, #FFF8E7 100%);
  border: 1px solid rgba(46,196,182,.28);
  border-radius: 14px;
}

.summary p { margin: 0; }

.note {
  margin: 18px 0;
  padding: 16px 18px;
  background: var(--sand);
  border: 1px solid rgba(255,184,48,.42);
  border-radius: 14px;
}

h2 {
  margin: 30px 0 10px;
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 1.28rem;
  font-weight: 900;
  line-height: 1.25;
}

p,
li {
  color: #2E3548;
  font-size: 1rem;
  line-height: 1.68;
}

p + p { margin-top: 10px; }

ul {
  margin: 10px 0;
  padding-left: 22px;
}

.card a:not(.nav-logo),
.policy-card a:not(.nav-logo) {
  color: var(--teal-dk);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.promise-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 26px 0 30px;
}

.promise {
  min-height: 86px;
  display: flex;
  align-items: center;
  padding: 18px 20px;
  background: var(--white);
  border: 1px solid rgba(46,196,182,.28);
  border-radius: 16px;
  box-shadow: 0 3px 16px rgba(26,26,46,.05);
  color: var(--ink);
  font-family: var(--font-head);
  font-weight: 900;
  line-height: 1.3;
}

.footer {
  background: var(--ink);
  color: rgba(255,255,255,.72);
  padding: 56px 0 24px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.footer-brand .nav-logo { color: var(--white); }
.footer-desc { margin-top: 14px; font-size: .9rem; max-width: 340px; line-height: 1.6; }
.footer-col-title { font-family: var(--font-head); font-weight: 800; color: var(--white); font-size: .95rem; margin-bottom: 14px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }

.footer-links a,
.footer-links span {
  color: inherit;
  font-size: .9rem;
}

.footer-links a:hover { color: var(--teal); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 20px;
  font-size: .82rem;
}

.footer-legal {
  display: flex;
  gap: 18px;
}

.footer-legal a:hover { color: var(--teal); }

@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

}

@media (max-width: 768px) {
  .nav-links { display: none; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 62px;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--border);
    padding: 16px;
    gap: 4px;
    z-index: 99;
  }

  .nav-mobile-toggle { display: flex; }

  .legal-hero {
    padding: 42px 0 22px;
  }

  .legal-main {
    margin-top: 24px;
    margin-bottom: 58px;
    padding: 0 18px;
  }

  .card,
  .policy-card {
    border-radius: 16px;
    padding: 24px 20px 28px;
  }

  .promise-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .container {
    padding-left: 18px;
    padding-right: 18px;
  }

  .nav .container {
    padding-left: 18px;
    padding-right: 18px;
  }

  .nav-logo {
    font-size: 1.05rem;
  }

  .footer {
    padding-top: 44px;
  }

  .footer-legal {
    flex-wrap: wrap;
  }
}
