/* ==========================================================
   SpaceFriend, Inc. — site styles
   Theme: light sky blue with white type
   ========================================================== */

:root {
  --sky-200: #a9dcff;
  --sky-300: #7cc8ff;
  --sky-400: #55b2f5;
  --sky-500: #3a9bea;
  --sky-600: #2a84d6;
  --sky-700: #1d6cbc;
  --sky-800: #155597;
  --ink: #0f4c88;

  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.86);
  --faint: rgba(255, 255, 255, 0.68);
  --glass: rgba(255, 255, 255, 0.12);
  --glass-strong: rgba(255, 255, 255, 0.2);
  --stroke: rgba(255, 255, 255, 0.3);
  --stroke-soft: rgba(255, 255, 255, 0.18);

  --radius: 24px;
  --radius-sm: 14px;
  --shadow: 0 24px 60px -24px rgba(8, 55, 110, 0.55);
  --shadow-soft: 0 10px 30px -12px rgba(8, 55, 110, 0.4);

  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --max: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  color-scheme: light;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--sky-500);
  background-image:
    radial-gradient(1200px 700px at 85% -10%, rgba(255, 255, 255, 0.35), transparent 60%),
    radial-gradient(900px 600px at -10% 30%, rgba(169, 220, 255, 0.55), transparent 60%),
    linear-gradient(170deg, #62bdf9 0%, #45a6ef 40%, #2f8ce0 75%, #2479cc 100%);
  background-attachment: fixed;
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: #fff; color: var(--sky-700); }

:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
  border-radius: 8px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: #fff;
  color: var(--sky-700);
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

/* ---------- ambient background ---------- */

#sky {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.orbs {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.orbs span {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  animation: drift 26s ease-in-out infinite alternate;
}
.orbs span:nth-child(1) {
  width: 520px; height: 520px;
  left: -140px; top: 8%;
  background: radial-gradient(circle, #c9ecff, transparent 70%);
}
.orbs span:nth-child(2) {
  width: 620px; height: 620px;
  right: -200px; top: 38%;
  background: radial-gradient(circle, #8fd4ff, transparent 70%);
  animation-duration: 32s;
  animation-delay: -8s;
}
.orbs span:nth-child(3) {
  width: 420px; height: 420px;
  left: 30%; bottom: -160px;
  background: radial-gradient(circle, #ffffff, transparent 70%);
  opacity: 0.35;
  animation-duration: 38s;
  animation-delay: -16s;
}
@keyframes drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(60px, -40px, 0) scale(1.08); }
  100% { transform: translate3d(-40px, 50px, 0) scale(0.95); }
}

.cursor-glow {
  position: fixed;
  left: 0; top: 0;
  width: 520px; height: 520px;
  margin: -260px 0 0 -260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22), transparent 62%);
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.4s;
  will-change: transform;
}
body.has-pointer .cursor-glow { opacity: 1; }

/* everything real sits above the ambient layers */
.site-header, main, .site-footer { position: relative; z-index: 2; }

/* ---------- layout helpers ---------- */

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section { scroll-margin-top: calc(var(--header-h) + 12px); }

.section { padding: clamp(72px, 11vw, 140px) 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 10px;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  background: var(--glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.eyebrow .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.8);
  animation: ping 2.2s infinite;
}
@keyframes ping {
  0%   { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.75); }
  80%, 100% { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); }
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(44px, 7.4vw, 92px); letter-spacing: -0.035em; }
h2 { font-size: clamp(34px, 4.8vw, 58px); }
h3 { font-size: 22px; letter-spacing: -0.01em; }
p { margin: 0; text-wrap: pretty; }

.text-shadow { text-shadow: 0 2px 24px rgba(16, 76, 140, 0.28); }

.section-head {
  max-width: 720px;
  margin-bottom: clamp(40px, 6vw, 64px);
}
.section-head h2 { margin: 18px 0 16px; }
.section-head p { color: var(--muted); font-size: 19px; }
.section-head.center { margin-inline: auto; text-align: center; }

/* ---------- buttons ---------- */

.btn {
  --bg: #fff;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  background: var(--bg);
  color: var(--sky-700);
  font: 600 16px/1 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 12px 30px -10px rgba(8, 55, 110, 0.55), inset 0 -2px 0 rgba(42, 132, 214, 0.12);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(169, 220, 255, 0.7) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.8s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -12px rgba(8, 55, 110, 0.6); }
.btn:hover::after { transform: translateX(120%); }
.btn svg { width: 18px; height: 18px; transition: transform 0.35s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn-ghost {
  background: var(--glass);
  color: #fff;
  border: 1px solid var(--stroke);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: none;
}
.btn-ghost::after { background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.25) 50%, transparent 70%); }
.btn-ghost:hover { background: var(--glass-strong); box-shadow: none; }

.btn[disabled] { opacity: 0.7; cursor: progress; transform: none; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  isolation: isolate;
  transition: height 0.4s var(--ease);
}
/* the frosted bar lives on a pseudo-element so the header itself never becomes
   a containing block for the fixed mobile menu */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  background: rgba(46, 140, 224, 0.55);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 1px 0 var(--stroke-soft), 0 12px 40px -20px rgba(8, 55, 110, 0.5);
  transition: opacity 0.4s;
}
.site-header.scrolled { --header-h: 66px; }
.site-header.scrolled::before { opacity: 1; }
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav a:not(.btn) {
  position: relative;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.25s, background 0.25s;
}
.nav a:not(.btn):hover,
.nav a[aria-current="page"] { color: #fff; background: var(--glass); }
.nav .btn { min-height: 42px; padding: 0 20px; font-size: 15px; margin-left: 10px; }

@media (max-width: 480px) {
  .nav .btn { min-height: 40px; padding: 0 16px; font-size: 14.5px; margin-left: 0; }
}

.tm {
  position: relative;
  top: 0.3em;
  margin-left: 0.04em;
  font-size: 0.28em;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1;
  vertical-align: top;
}
.brand .tm { font-size: 0.6em; top: 0.12em; }

/* ---------- hero ---------- */

.hero {
  min-height: calc(88vh - var(--header-h));
  display: grid;
  align-items: center;
  padding: clamp(40px, 7vw, 90px) 0 clamp(70px, 9vw, 120px);
  text-align: center;
}
.hero .lede {
  max-width: 560px;
  font-size: clamp(18px, 1.6vw, 21px);
  color: var(--muted);
}
.hero-title {
  margin: 0 0 8px;
  font-size: clamp(52px, 13vw, 168px);
  letter-spacing: -0.045em;
  line-height: 1;
  background: linear-gradient(100deg, #ffffff 35%, #d3eeff 50%, #ffffff 65%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 30px rgba(16, 76, 140, 0.3));
  animation: shimmer 7s ease-in-out infinite;
}
@keyframes shimmer {
  0%, 100% { background-position: 100% 0; }
  50% { background-position: 0% 0; }
}
.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}
.hero-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 40px;
  color: var(--faint);
  font-size: 14.5px;
  font-weight: 500;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 18px; height: 18px; opacity: 0.9; }


@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bob {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -14px; }
}

/* ---------- cards ---------- */

.card {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background: linear-gradient(160deg, rgba(255,255,255,0.2), rgba(255,255,255,0.07));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  overflow: hidden;
  isolation: isolate;
  transform-style: preserve-3d;
  transition: transform 0.5s var(--ease), border-color 0.3s;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, 0.28), transparent 45%);
  opacity: 0;
  transition: opacity 0.4s;
}
.card:hover::before { opacity: 1; }
.card:hover { border-color: rgba(255, 255, 255, 0.55); }

.icon {
  width: 54px; height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--sky-600);
  box-shadow: 0 12px 24px -12px rgba(8, 55, 110, 0.6);
}
.icon svg { width: 26px; height: 26px; }

/* ---------- company info ---------- */

.company {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding: clamp(32px, 5vw, 56px);
}
.company h2 { font-size: clamp(30px, 3.6vw, 44px); margin-bottom: 14px; }
.company p { color: var(--muted); font-size: 19px; }
.company dl { margin: 0; display: grid; gap: 20px; }
.company dt {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 4px;
}
.company dd { margin: 0; font-size: 17px; font-weight: 500; }
.company dd a { color: #fff; text-underline-offset: 4px; }
@media (max-width: 760px) { .company { grid-template-columns: 1fr; } }

/* ---------- CTA ---------- */

.cta {
  position: relative;
  padding: clamp(48px, 8vw, 96px) clamp(24px, 6vw, 80px);
  text-align: center;
  border-radius: 36px;
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(255,255,255,0.4), transparent 70%),
    linear-gradient(160deg, rgba(255,255,255,0.26), rgba(255,255,255,0.08));
}
.cta h2 { max-width: 760px; margin: 18px auto 18px; font-size: clamp(36px, 5.4vw, 68px); }
.cta p { max-width: 560px; margin: 0 auto 36px; color: var(--muted); font-size: 19px; }
.cta .hero-actions { justify-content: center; margin-top: 0; }
.cta-planet {
  position: absolute;
  width: 220px; height: 220px;
  right: -60px; top: -60px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #fff, #bfe5ff 45%, rgba(143, 212, 255, 0.2) 70%);
  opacity: 0.7;
  z-index: -1;
  animation: bob 9s ease-in-out infinite;
}

/* ---------- footer ---------- */

.site-footer {
  padding: 80px 0 40px;
  margin-top: 40px;
  border-top: 1px solid var(--stroke-soft);
  background: linear-gradient(180deg, rgba(21, 85, 151, 0) 0%, rgba(21, 85, 151, 0.35) 100%);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.2fr;
  gap: 40px;
}
.footer-grid h4 {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 18px;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-grid a { text-decoration: none; color: var(--muted); transition: color 0.2s; }
.footer-grid a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.footer-mail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: #fff !important;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  margin-top: 64px;
  padding-top: 26px;
  border-top: 1px solid var(--stroke-soft);
  font-size: 14px;
  color: var(--faint);
}
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-bottom a { color: var(--faint); text-decoration: none; }
.footer-bottom a:hover { color: #fff; }
.footer-word {
  margin-top: 56px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(64px, 16vw, 220px);
  line-height: 0.8;
  letter-spacing: -0.05em;
  text-align: center;
  background: linear-gradient(180deg, rgba(255,255,255,0.5), rgba(255,255,255,0));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  user-select: none;
  overflow: hidden;
}
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- page hero (inner pages) ---------- */

.page-hero { padding: clamp(48px, 8vw, 100px) 0 clamp(36px, 5vw, 60px); }
.page-hero h1 { font-size: clamp(42px, 6.4vw, 80px); margin: 22px 0 18px; }
.page-hero p { max-width: 640px; color: var(--muted); font-size: 19px; }

/* ---------- contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(28px, 4vw, 48px);
  align-items: start;
  padding-bottom: clamp(70px, 10vw, 120px);
}
.contact-info { display: grid; gap: 18px; }
.info-card { padding: 26px 28px; display: flex; gap: 18px; align-items: flex-start; }
.info-card .icon { flex: none; width: 48px; height: 48px; border-radius: 14px; }
.info-card .icon svg { width: 22px; height: 22px; }
.info-card h3 { font-size: 18px; margin-bottom: 4px; }
.info-card p { color: var(--muted); font-size: 15.5px; }
.info-card a { font-weight: 600; color: #fff; text-underline-offset: 4px; }

.form-card { padding: clamp(26px, 4vw, 44px); }
.form-card h2 { font-size: clamp(28px, 3vw, 36px); margin-bottom: 8px; }
.form-card > p { color: var(--muted); margin-bottom: 30px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; column-gap: 18px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

.field { position: relative; margin-bottom: 18px; }
.field label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.field label .opt { font-weight: 400; color: var(--faint); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 15px 18px;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font: 400 16px/1.4 var(--font-body);
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
  appearance: none;
  -webkit-appearance: none;
}
.field textarea { min-height: 160px; resize: vertical; }
.field select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 18px;
  padding-right: 46px;
}
.field select option { color: var(--ink); }
.field ::placeholder { color: rgba(255, 255, 255, 0.6); }
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: rgba(255, 255, 255, 0.55); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: #fff;
  background: rgba(255, 255, 255, 0.22);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2);
}
.field .err {
  display: none;
  margin-top: 7px;
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
}
.field .err::before { content: "⚠ "; }
.field.invalid input,
.field.invalid select,
.field.invalid textarea { border-color: #ffd5d5; background: rgba(255, 120, 120, 0.18); }
.field.invalid .err { display: block; }

.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--muted); cursor: pointer; }
.check input {
  flex: none;
  width: 22px; height: 22px;
  margin: 1px 0 0;
  padding: 0;
  border-radius: 7px;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.check input:checked { background: #fff; border-color: #fff; }
.check input:checked::after {
  content: "";
  width: 6px; height: 11px;
  margin-top: -2px;
  border: solid var(--sky-600);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}
.check a { color: #fff; font-weight: 600; text-underline-offset: 3px; }

.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; margin-top: 10px; }
.form-actions small { color: var(--faint); font-size: 13.5px; }
.spinner {
  width: 18px; height: 18px;
  border: 2.5px solid rgba(42, 132, 214, 0.25);
  border-top-color: var(--sky-600);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: none;
}
.btn.loading .spinner { display: block; }
.btn.loading .arrow { display: none; }

.form-status {
  margin-top: 22px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  display: none;
}
.form-status.error { display: block; background: rgba(255, 120, 120, 0.2); border: 1px solid #ffd5d5; }
.form-status a { color: #fff; font-weight: 600; }

.form-success {
  display: none;
  text-align: center;
  padding: 40px 10px;
}
.form-success .burst {
  width: 92px; height: 92px;
  margin: 0 auto 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--sky-600);
  box-shadow: 0 0 0 14px rgba(255,255,255,0.18), 0 0 0 30px rgba(255,255,255,0.08);
  animation: pop 0.7s var(--ease) both;
}
.form-success .burst svg { width: 42px; height: 42px; }
.form-success h2 { margin-bottom: 12px; }
.form-success p { color: var(--muted); max-width: 420px; margin: 0 auto 26px; }
.sent .form-success { display: block; }
.sent form, .sent > h2, .sent > p.form-intro { display: none; }
@keyframes pop { 0% { transform: scale(0.4); opacity: 0; } 100% { transform: none; opacity: 1; } }

@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- legal pages ---------- */

.legal-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
  padding-bottom: clamp(70px, 10vw, 120px);
}
.toc {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  padding: 22px;
  max-height: calc(100vh - var(--header-h) - 48px);
  overflow: auto;
}
.toc h4 {
  font-family: var(--font-body);
  font-size: 12.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 12px;
}
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: toc; }
.toc a {
  display: block;
  padding: 7px 12px;
  border-radius: 10px;
  font-size: 14.5px;
  line-height: 1.35;
  text-decoration: none;
  color: var(--muted);
  transition: background 0.2s, color 0.2s;
}
.toc a:hover { background: var(--glass); color: #fff; }
.toc a.active { background: #fff; color: var(--sky-700); font-weight: 600; }

.legal-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 30px;
}
.legal-tabs a {
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
  color: var(--muted);
  transition: background 0.2s, color 0.2s;
}
.legal-tabs a:hover { background: var(--glass); color: #fff; }
.legal-tabs a[aria-current="page"] { background: #fff; color: var(--sky-700); border-color: #fff; font-weight: 600; }

.legal-body { padding: clamp(26px, 4vw, 52px); }
.legal-body .updated {
  display: inline-block;
  margin-bottom: 26px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 13.5px;
  font-weight: 600;
}
.legal-body h2 {
  font-size: clamp(24px, 2.6vw, 30px);
  margin: 46px 0 14px;
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.legal-body h2:first-of-type { margin-top: 10px; }
.legal-body h3 { font-size: 19px; margin: 26px 0 8px; }
.legal-body p, .legal-body li { color: var(--muted); font-size: 16.5px; }
.legal-body p + p { margin-top: 14px; }
.legal-body ul { padding-left: 22px; margin: 12px 0; display: grid; gap: 8px; }
.legal-body li::marker { color: #fff; }
.legal-body strong { color: #fff; }
.legal-body a { color: #fff; font-weight: 600; text-underline-offset: 3px; }
.legal-body .caps { text-transform: uppercase; font-size: 15px; letter-spacing: 0.01em; }
.legal-body .callout {
  margin: 18px 0;
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.12);
}
.legal-body table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; }
.legal-body th, .legal-body td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--stroke-soft); vertical-align: top; }
.legal-body th { font-weight: 600; color: #fff; background: rgba(255, 255, 255, 0.1); }
.legal-body td { color: var(--muted); }
.table-wrap { overflow-x: auto; }
.fill {
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(255, 226, 122, 0.35);
  color: #fff;
  font-weight: 600;
}

@media (max-width: 900px) {
  .legal-layout { grid-template-columns: 1fr; }
  .toc { position: static; max-height: none; }
}

/* ---------- reveal on scroll ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--d, 0s);
}
[data-reveal].in { opacity: 1; transform: none; }
.no-js [data-reveal] { opacity: 1; transform: none; }

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}
