:root {
  --coral: #ff6b57;
  --coral-dark: #e9503f;
  --violet: #7762d8;
  --lavender: #eee9ff;
  --ivory: #fff9f2;
  --paper: #fffdf9;
  --aubergine: #332b3a;
  --muted: #776b65;
  --line: #eaded5;
  --header-h: 82px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: clip;
  max-width: 100%;
}

body {
  margin: 0;
  overflow-x: clip;
  max-width: 100%;
  background: var(--ivory);
  color: var(--aubergine);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(1180px, calc(100% - 40px));
  max-width: 100%;
  margin: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 249, 242, .92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

nav {
  height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: max-content;
  font-size: 22px;
  font-weight: 760;
  letter-spacing: -.045em;
  line-height: 1;
}

.brand-symbol {
  display: block;
  width: 22px;
  height: 28px;
  flex: 0 0 22px;
  object-fit: contain;
}

.nav-links { display: flex; gap: 32px; font-size: 13px; }
.nav-links a { transition: color .2s; }
.nav-links a:hover { color: var(--violet); }
.nav-actions { justify-self: end; display: flex; align-items: center; gap: 20px; font-size: 13px; }
.nav-actions .text-link { transition: color .2s; }
.nav-actions .text-link:hover { color: var(--violet); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  max-width: 100%;
  transition: transform .2s, background .2s, box-shadow .2s;
}

.button:hover { transform: translateY(-2px); }
.button.primary {
  background: var(--coral);
  color: white;
  box-shadow: 0 8px 18px rgba(255, 107, 87, .18);
}
.button.primary:hover { background: var(--coral-dark); }

.terms-page {
  padding: 56px 0 80px;
}

.terms-doc {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 48px 44px 56px;
  box-shadow: 0 24px 60px rgba(90, 65, 55, .08);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--coral-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.terms-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.08;
  letter-spacing: -.04em;
}

.effective {
  display: inline-flex;
  margin: 0 0 22px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--lavender);
  color: #5a4cb8;
  font-size: 13px;
  font-weight: 600;
}

.lead {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.terms-body {
  width: 100%;
  margin-top: 42px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}

.terms-section {
  padding: 8px 0 28px;
  scroll-margin-top: calc(var(--header-h) + 20px);
}

.terms-section + .terms-section {
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.terms-section h2 {
  margin: 0 0 16px;
  font-size: 22px;
  letter-spacing: -.03em;
  line-height: 1.25;
}

.terms-body p,
.terms-body li {
  color: var(--aubergine);
  font-size: 15px;
  line-height: 1.7;
}

.terms-body p { margin: 0 0 14px; }

.terms-body a {
  color: var(--violet);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.clause {
  display: inline-block;
  margin-right: 8px;
  color: var(--coral-dark);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.terms-body ul {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.terms-body li {
  position: relative;
  padding: 6px 0 6px 22px;
}

.terms-body li::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--coral);
}

.meta-line span {
  display: inline-block;
  min-width: 72px;
  margin-right: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.terms-doc + .terms-doc {
  margin-top: 32px;
}


@media (max-width: 1023px) {
  nav { grid-template-columns: 1fr auto; }
  .nav-links, .nav-actions .text-link { display: none; }
}

@media (max-width: 767px) {
  .container { width: min(1180px, calc(100% - 32px)); }
  .terms-page { padding: 28px 0 56px; }
  .terms-doc {
    padding: 28px 20px 36px;
    border-radius: 18px;
  }
}

@media print {
  .site-header, footer { display: none; }
  .terms-page { padding: 0; }
  .terms-doc {
    border: 0;
    box-shadow: none;
    padding: 0;
  }
  .terms-body { margin: 0; padding: 0; border: 0; }
}
