/* Terms & Privacy page — Lockin.tech */

/* ── Page shell ─────────────────────────────── */
.page {
  position: relative;
  padding: calc(80px + var(--sp-16)) 0 var(--sp-16);
  overflow: hidden;
}
.page__bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.page__bg-blob {
  position: absolute; border-radius: 50%;
  filter: blur(120px); opacity: 0.08;
}
.page__bg-blob--1 {
  width: clamp(360px, 55vw, 720px); height: clamp(360px, 55vw, 720px);
  background: var(--c-primary); top: -10%; left: -12%;
}
.page__bg-blob--2 {
  width: clamp(320px, 50vw, 640px); height: clamp(320px, 50vw, 640px);
  background: var(--c-accent); top: 30%; right: -15%;
}
.page__inner { position: relative; z-index: 1; }

/* ── Back link ──────────────────────────────── */
.back-link {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: 0.5rem 1rem;
  font-size: var(--t-sm); font-weight: 500;
  color: var(--c-text-muted);
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid var(--c-border);
  border-radius: var(--r-full);
  text-decoration: none;
  margin-bottom: var(--sp-10);
  transition: all var(--t-fast);
}
.back-link:hover {
  color: var(--c-dark);
  background: rgba(0, 0, 0, 0.06);
  border-color: var(--c-border-bright);
  transform: translateX(-2px);
}

/* ── Header ─────────────────────────────────── */
.legal-header { text-align: center; margin-bottom: var(--sp-12); }
.legal-header__eyebrow {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--c-accent);
  padding: 0.4rem 0.9rem;
  background: rgba(var(--c-accent-rgb), 0.08);
  border: 1px solid rgba(var(--c-accent-rgb), 0.25);
  border-radius: var(--r-full);
  margin-bottom: var(--sp-5);
}

.legal-header__title {
  font-family: var(--font-display);
  font-size: var(--t-5xl);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: var(--c-dark);
  margin-bottom: var(--sp-4);
}
.legal-header__title span {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}
.legal-header__updated {
  font-family: var(--font-mono);
  font-size: var(--t-sm);
  color: var(--c-text-muted);
}

/* ── Section switcher ───────────────────────── */
.legal-nav-wrap { text-align: center; }
.legal-nav {
  display: inline-flex;
  gap: 0.3rem;
  padding: 0.35rem;
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid var(--c-border);
  border-radius: var(--r-full);
  margin: 0 auto var(--sp-12);
}
.legal-nav__link {
  padding: 0.65rem 1.5rem;
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--c-text-muted);
  border-radius: var(--r-full);
  text-decoration: none;
  transition: all var(--t-fast);
  cursor: pointer;
}
.legal-nav__link:hover { color: var(--c-dark); }
.legal-nav__link--active {
  background: var(--grad-teal);
  color: #04121F;
  box-shadow: 0 6px 20px -6px rgba(var(--c-accent-rgb), 0.5);
}

/* ── Content card ───────────────────────────── */
.legal-content {
  max-width: 820px;
  margin: 0 auto;
  background: var(--c-bg-1);
  border: 1px solid var(--c-border-bright);
  border-radius: var(--r-xl);
  padding: clamp(1.75rem, 4vw, 3.25rem);
  box-shadow: var(--shadow-md);
}
.legal-section { display: none; }
.legal-section--active { display: block; }

.legal-section h2 {
  font-family: var(--font-display);
  font-size: var(--t-2xl);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--c-dark);
  margin-top: var(--sp-12);
  margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--c-border);
  scroll-margin-top: 100px;
}
.legal-section h2:first-child { margin-top: 0; }
.legal-section h3 {
  font-family: var(--font-body);
  font-size: var(--t-lg);
  font-weight: 700;
  color: var(--c-dark);
  margin-top: var(--sp-6);
  margin-bottom: var(--sp-3);
}
.legal-section p {
  color: var(--c-text);
  margin-bottom: var(--sp-4);
  line-height: 1.75;
}
.legal-section ul {
  margin: 0 0 var(--sp-5) 0;
  padding-left: var(--sp-6);
  list-style: none;
}
.legal-section ul li {
  position: relative;
  margin-bottom: var(--sp-2);
  padding-left: var(--sp-2);
  color: var(--c-text-muted);
  line-height: 1.65;
}
.legal-section ul li::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--sp-4));
  top: 0.7em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--c-accent);
  box-shadow: 0 0 8px rgba(var(--c-accent-rgb), 0.5);
}
.legal-section a {
  color: var(--c-accent);
  text-decoration: underline;
  text-decoration-color: rgba(var(--c-accent-rgb), 0.4);
  text-underline-offset: 3px;
  transition: color var(--t-fast), text-decoration-color var(--t-fast);
}
.legal-section a:hover {
  color: var(--c-accent-light);
  text-decoration-color: var(--c-accent);
}
.legal-section strong { color: var(--c-dark); font-weight: 700; }
.legal-section hr {
  border: none;
  border-top: 1px solid var(--c-border);
  margin: var(--sp-12) 0;
}

@media (max-width: 600px) {
  .page              { padding-top: calc(68px + var(--sp-10)); }
  .legal-nav         { width: 100%; }
  .legal-nav__link   { flex: 1; padding: 0.65rem 1rem; text-align: center; }
}
