/* ─── DRAKKAR LEGAL/CONTENT PAGES — shared theme ─── */

/* Tokens hizalandı: index.html ile bire bir aynı brand renkleri,
   yüzeyler ve gölge sistemi. Legal sayfalar = ana sayfa DNA'sı. */
:root {
  /* Brand */
  --g:  #3ddc9a;
  --g2: #2bb27d;
  --b:  #5b7cff;
  --b2: #4763e0;
  --p:  #7b5fff;
  --pink: #ff6b9d;
  --cyan: #5fd4ff;
  --glow-g: rgba(61,220,154,.30);
  --glow-b: rgba(91,124,255,.26);
  --glow-p: rgba(123,95,255,.24);

  /* Surfaces / backgrounds — match index.html */
  --bg:  #07080c;
  --bg1: #0a0b10;
  --bg2: #0d0e14;
  --surface-1: rgba(15,17,23,0.92);
  --surface-2: rgba(15,17,23,0.78);
  --surface-3: rgba(15,17,23,0.62);
  --card:      rgba(15,17,23,0.88);

  /* Borders */
  --border:        rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.14);
  --border-g:      rgba(61,220,154,0.24);

  /* Text */
  --text:        #e6ebf5;
  --text-soft:   #b8c0d0;
  --muted:       #7b8499;

  /* Status */
  --success: #3ddc9a;
  --warning: #f5b544;
  --error:   #ff6b6b;

  /* Type */
  --sans: 'Inter', system-ui, sans-serif;
  --display: 'Bricolage Grotesque', 'Inter', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --brand: 'Cinzel', 'Trajan Pro', Georgia, serif;

  /* Motion + radii */
  --ease:        cubic-bezier(.22,1,.36,1);
  --ease-spring: cubic-bezier(.34,1.56,.64,1);
  --r:  1rem;
  --r2: 1.5rem;

  /* Unified card system — identical to index.html */
  --card-surface: linear-gradient(160deg, #0f1117 0%, #0b0c11 55%, #07080c 100%);
  --card-border:  1px solid rgba(255,255,255,.07);
  --card-border-hover:  rgba(255,255,255,.14);
  --card-border-accent: rgba(61,220,154,.26);
  --card-shadow:
    0 0 0 1px rgba(0,0,0,0.40),
    0 1px 0 rgba(255,255,255,.05) inset,
    0 -1px 0 rgba(0,0,0,.40) inset,
    0 12px 24px -6px rgba(0,0,0,.35),
    0 24px 48px -12px rgba(0,0,0,.45);
  --card-shadow-hover:
    0 0 0 1px rgba(0,0,0,0.50),
    0 1px 0 rgba(255,255,255,.07) inset,
    0 -1px 0 rgba(0,0,0,.45) inset,
    0 18px 36px -6px rgba(0,0,0,.50),
    0 36px 72px -12px rgba(0,0,0,.60);
  --card-edge-line:        linear-gradient(90deg, transparent, rgba(255,255,255,.16), transparent);
  --card-edge-line-bottom: linear-gradient(90deg, transparent, rgba(255,255,255,.05), transparent);

  --ring-g: 0 0 0 1px rgba(61,220,154,.32), 0 0 0 4px rgba(61,220,154,.08);
}

/* Brand-tinted text selection */
::selection { background: rgba(61,220,154,.32); color: #fff; text-shadow: 0 0 18px rgba(61,220,154,.5); }
::-moz-selection { background: rgba(61,220,154,.32); color: #fff; }

*,*::before,*::after { box-sizing:border-box; margin:0; padding:0; }
html {
  scroll-behavior: smooth;
  color-scheme: dark;
  /* Hint native UI (selects, scrollbars, date pickers, autofill) to use dark theme */
}
body {
  font-family: var(--sans);
  min-height: 100vh;
  background: #000000;
  background-attachment: fixed;
  color: #fff;
  overflow-x: hidden;
  cursor: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
/* Ambient atmosphere — index.html ile bire bir aynı brand glow */
body::before {
  content: '';
  position: fixed;
  inset: -10% -10% auto -10%;
  height: 80vh;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(61,220,154,.10) 0%, transparent 60%),
    radial-gradient(ellipse 40% 35% at 18% 18%, rgba(91,124,255,.08) 0%, transparent 70%),
    radial-gradient(ellipse 38% 35% at 85% 22%, rgba(123,95,255,.07) 0%, transparent 70%);
  mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%);
}

/* Cursor-aware ambient orb — desktop only, injected by legal.js.
   Gradient is shaped to read as soft glow without filter:blur, which
   was repainting every frame as the orb lerped along with the cursor. */
.cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 600px; height: 600px;
  margin: -300px 0 0 -300px;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(circle, rgba(61,220,154,.09) 0%, rgba(91,124,255,.055) 30%, transparent 60%);
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity .35s var(--ease);
  will-change: transform;
  transform: translate3d(50vw, 50vh, 0);
}
.cursor-glow.active { opacity: 1; }
@media (hover: none), (pointer: coarse), (prefers-reduced-motion: reduce) {
  .cursor-glow { display: none; }
}

/* Magnetic-attract buttons — variables set by legal.js */
.contact-submit, .nav-btn {
  --mag-x: 0px;
  --mag-y: 0px;
}

/* Tactile noise grain — analog texture overlay (injected by legal.js) */
.noise-grain {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: .035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.6 0'/></filter><rect width='240' height='240' filter='url(%23n)'/></svg>");
}
@media (prefers-reduced-motion: reduce) {
  .noise-grain { opacity: .02; }
}

/* Brand stamp utility — Cinzel for special phrases */
.brand-stamp {
  font-family: var(--brand);
  letter-spacing: .12em;
  font-weight: 600;
  text-transform: uppercase;
}

/* ─── SHARE SECTION — "Spread the saga" ─── */
.share-section {
  position: relative;
  z-index: 2;
  padding: 4rem 0 3rem;
}
.share-card {
  position: relative;
  padding: 2.4rem 2.2rem;
  border-radius: var(--r2);
  border: var(--card-border);
  background: var(--card-surface);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem 3rem;
  align-items: center;
}
.share-card::after {
  content: '';
  position: absolute;
  top: 0; left: 2rem; right: 2rem; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(61,220,154,.4), rgba(91,124,255,.3), rgba(123,95,255,.2), transparent);
  pointer-events: none;
}
.share-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 80% at 0% 50%, rgba(61,220,154,.04), transparent 60%),
    radial-gradient(ellipse 40% 80% at 100% 50%, rgba(123,95,255,.04), transparent 60%);
  pointer-events: none;
}
.share-text > * { position: relative; z-index: 1; }
.share-eyebrow {
  display: inline-flex; align-items: center; gap: .45rem;
  font-family: var(--mono);
  font-size: .7rem; font-weight: 500;
  color: var(--g);
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: .3rem .7rem;
  border: 1px solid var(--border-g);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(61,220,154,0.10), rgba(91,124,255,0.045));
  margin-bottom: .9rem;
}
.share-eyebrow::before {
  content:''; width: 5px; height: 5px; border-radius: 50%;
  background: var(--g);
  box-shadow: 0 0 8px var(--g);
  animation: pulse 2.5s ease infinite;
}
.share-title {
  font-family: var(--display);
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -.03em;
  color: #fff;
  margin-bottom: .55rem;
  text-wrap: balance;
}
.share-sub {
  font-size: .98rem;
  color: var(--text);
  line-height: 1.6;
  max-width: 480px;
  text-wrap: pretty;
}
.share-buttons {
  position: relative; z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  align-items: center;
  justify-content: flex-end;
}
.share-btn {
  --mag-x: 0px; --mag-y: 0px;
  position: relative;
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .7rem 1.1rem;
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(10,11,16,.72);
  color: var(--text);
  font-family: var(--sans);
  font-size: .86rem;
  font-weight: 500;
  cursor: pointer;
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
  transition: transform .25s var(--ease-spring), border-color .25s var(--ease), background .25s, color .25s, box-shadow .25s;
}
.share-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.share-btn:hover {
  transform: translate(var(--mag-x), calc(var(--mag-y) - 2px));
  color: #fff;
  border-color: rgba(61,220,154,.30);
  background: rgba(61,220,154,.05);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.06),
    0 6px 18px -8px rgba(61,220,154,.30);
}
.share-btn:active {
  transform: translate(var(--mag-x), 0);
  box-shadow: inset 0 2px 4px rgba(0,0,0,.18);
}
.share-btn-x:hover       { border-color: rgba(255,255,255,.30); background: rgba(255,255,255,.04); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 6px 18px -8px rgba(255,255,255,.18); }
.share-btn-reddit:hover  { border-color: rgba(255,86,0,.35);    background: rgba(255,86,0,.05);    box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 6px 18px -8px rgba(255,86,0,.30); }
.share-btn-tg:hover      { border-color: rgba(34,158,217,.35);  background: rgba(34,158,217,.05);  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 6px 18px -8px rgba(34,158,217,.30); }
.share-btn-copy.is-copied {
  border-color: rgba(61,220,154,.45);
  background: rgba(61,220,154,.10);
  color: var(--g);
}
.share-btn-copy.is-copied .share-btn-icon-link  { display: none; }
.share-btn-icon-check { display: none; }
.share-btn-copy.is-copied .share-btn-icon-check { display: inline-block; }
@media (max-width: 760px) {
  .share-card    { grid-template-columns: 1fr; gap: 1.4rem; padding: 1.85rem 1.5rem; }
  .share-buttons { justify-content: flex-start; }
}
@media (max-width: 420px) {
  .share-btn { padding: .65rem .9rem; font-size: .82rem; }
  .share-btn span { display: none; }
  .share-btn svg { width: 18px; height: 18px; }
}
a { color: inherit; text-decoration: none; }

/* Grid overlay */
.grid-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 64px 64px, 64px 64px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 48%, #000 35%, transparent 100%);
}

/* Layout */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; position: relative; z-index: 2; }

/* Skip-to-content link (a11y) */
.skip-link {
  position: fixed;
  top: 0; left: 50%;
  transform: translate(-50%, -100%);
  z-index: 2000;
  padding: .55rem 1.1rem;
  border-radius: 0 0 .9rem .9rem;
  background: var(--g);
  color: #021008;
  font-family: var(--mono);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
  transition: transform .2s var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); outline: 0; }

/* Reading progress bar */
.read-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--g) 0%, #5fd4ff 35%, var(--b) 70%, var(--p) 100%);
  transform-origin: left center;
  transform: scaleX(0);
  z-index: 1100;
  pointer-events: none;
  box-shadow:
    0 0 14px rgba(61,220,154,.45),
    0 0 36px rgba(91,124,255,.18),
    0 1px 0 rgba(255,255,255,.08) inset;
  will-change: transform;
  transition: opacity .25s var(--ease);
}
/* Bloom dot at the leading edge */
.read-progress::after {
  content: '';
  position: absolute;
  right: 0; top: 50%;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #5fd4ff;
  transform: translate(50%, -50%);
  box-shadow: 0 0 12px #5fd4ff, 0 0 28px rgba(91,124,255,.55);
  opacity: .85;
}
.grad {
  background: linear-gradient(135deg, #3ddc9a 0%, #5fd4ff 30%, #5b7cff 65%, #7b5fff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.kicker {
  display: inline-flex; align-items: center; gap: .45rem;
  font-family: var(--mono);
  font-size: .72rem; font-weight: 500;
  color: var(--g);
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .3rem .7rem;
  border: 1px solid var(--border-g);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(61,220,154,0.10), rgba(61,93,255,0.045));
  box-shadow: 0 0 18px rgba(61,220,154,.06);
  margin-bottom: 1rem;
}
.kicker::before {
  content:'';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--g);
  box-shadow: 0 0 8px var(--g), 0 0 14px rgba(61,220,154,.4);
  animation: pulse 2.5s ease infinite;
}

/* ─── NAV (Liquid metal pill) ─── */
.nav-pill {
  position: fixed;
  top: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.45rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: linear-gradient(180deg, #1c1c1e 0%, #050505 100%);
  isolation: isolate;
  overflow: hidden;
  box-shadow:
    0 14px 24px rgba(0,0,0,0.30),
    0  6px 10px rgba(0,0,0,0.18),
    inset 0 1px 0 rgba(255,255,255,0.08),
    inset 0 -1px 0 rgba(0,0,0,0.30);
  white-space: nowrap;
}
.nav-pill::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(28,28,32,.42) 0%, rgba(8,8,10,.55) 100%);
  pointer-events: none;
  z-index: 1;
}
.nav-brand {
  position: relative; z-index: 3;
  display: flex; align-items: center; gap: .5rem;
  font-family: var(--brand);
  font-size: .95rem; font-weight: 700;
  padding: .3rem .9rem .3rem .7rem;
  margin-right: .35rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #f4f5f8;
  text-shadow: 0 1px 2px rgba(0,0,0,.6);
}
.nav-brand::after {
  content: '';
  position: absolute; right: 0; top: 18%; bottom: 18%; width: 1px;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.18) 50%, rgba(255,255,255,0) 100%);
}
.nav-brand-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--g);
  box-shadow: 0 0 8px var(--g);
  animation: pulse 2.5s ease infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 6px var(--g); }
  50%     { box-shadow: 0 0 14px var(--g), 0 0 30px rgba(61,220,154,.3); }
}
.nav-link {
  position: relative; z-index: 3;
  padding: .38rem .7rem;
  border-radius: 999px;
  font-size: .82rem;
  color: #b8c0d0;
  text-shadow: 0 1px 2px rgba(0,0,0,.55);
  transition: background .2s, color .2s;
}
.nav-link:hover { background: rgba(255,255,255,.07); color: #fff; }
.nav-sep {
  position: relative; z-index: 3;
  width: 1px; height: 18px; margin: 0 .35rem;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.18) 50%, rgba(255,255,255,0) 100%);
}
.nav-btn {
  position: relative; z-index: 3;
  display: inline-flex; align-items: center; justify-content: center;
  padding: .42rem 1.1rem;
  border-radius: 999px;
  font-size: .82rem; font-weight: 600;
  color: #fff;
  background: linear-gradient(180deg, #1c1c1e 0%, #050505 100%);
  border: 1px solid rgba(255,255,255,.14);
  text-shadow: 0 1px 2px rgba(0,0,0,.6);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.16),
    inset 0 -1px 0 rgba(0,0,0,.40),
    inset 0 0 0 1px rgba(255,255,255,.04),
    0 2px 6px rgba(0,0,0,.40);
  overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s, background .25s;
}
.nav-btn-label { position: relative; z-index: 2; }
.nav-btn::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(110deg, rgba(255,255,255,0) 35%, rgba(255,255,255,.22) 50%, rgba(255,255,255,0) 65%);
  background-size: 220% 100%;
  background-position: -120% 0;
  background-repeat: no-repeat;
  animation: navBtnSheen 4.5s ease-in-out infinite;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 1;
}
@keyframes navBtnSheen {
  0%,100% { background-position: -120% 0; }
  50%     { background-position:  220% 0; }
}
.nav-btn:hover {
  transform: translateY(-1px);
  background: linear-gradient(180deg, #0d0e14 0%, #07080c 100%);
}

/* ─── HAMBURGER BUTTON (mobile/iPad nav trigger) ─────── */
.nav-burger {
  display: none;
  position: relative;
  z-index: 3;
  width: 44px; height: 44px;
  padding: 0;
  margin-left: .25rem;
  background: transparent;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  -webkit-tap-highlight-color: transparent;
  transition: background .2s var(--ease);
}
.nav-burger:hover { background: rgba(255,255,255,.05); }
.nav-burger:active { background: rgba(255,255,255,.08); }
.nav-burger span {
  position: absolute;
  left: 12px; right: 12px;
  height: 2px;
  background: #f5f7fa;
  border-radius: 2px;
  transform-origin: center;
  transition: transform .35s var(--ease), opacity .25s, top .35s var(--ease);
}
.nav-burger span:nth-child(1) { top: 15px; }
.nav-burger span:nth-child(2) { top: 21px; }
.nav-burger span:nth-child(3) { top: 27px; }
.nav-burger.is-open span:nth-child(1) { top: 21px; transform: rotate( 45deg); }
.nav-burger.is-open span:nth-child(2) { opacity: 0; }
.nav-burger.is-open span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* ─── MOBILE SLIDE-DOWN PANEL ────────────────────────── */
.nav-mobile {
  position: fixed;
  top: 4.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(-12px);
  z-index: 999;
  width: min(calc(100vw - 1.5rem), 420px);
  padding: 1rem;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.10);
  background: linear-gradient(180deg, rgba(20,20,24,.92) 0%, rgba(8,8,10,.94) 100%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
          backdrop-filter: blur(18px) saturate(140%);
  box-shadow:
    0 22px 44px rgba(0,0,0,.55),
    0  8px 16px rgba(0,0,0,.30),
    inset 0 1px 0 rgba(255,255,255,.10);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease), transform .35s var(--ease);
  display: flex;
  flex-direction: column;
  gap: .25rem;
}
.nav-mobile.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-mobile a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.1rem;
  min-height: 44px;
  border-radius: 12px;
  font-family: var(--sans);
  font-size: .95rem;
  font-weight: 500;
  color: #d8dee8;
  letter-spacing: .01em;
  transition: background .2s, color .2s, transform .2s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.nav-mobile a::after {
  content: '\2192';                /* arrow */
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity .2s, transform .25s var(--ease);
  font-family: var(--mono);
  color: var(--g);
}
.nav-mobile a:active {
  background: rgba(255,255,255,.06);
  color: #fff;
  transform: translateX(2px);
}
.nav-mobile a:active::after { opacity: 1; transform: translateX(0); }
.nav-mobile-sep {
  height: 1px;
  margin: .5rem 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.10), transparent);
}
.nav-mobile-cta {
  background: linear-gradient(180deg, rgba(61,220,154,.18), rgba(91,124,255,.10)) !important;
  border: 1px solid rgba(61,220,154,.32) !important;
  color: #fff !important;
  font-weight: 600 !important;
  margin-top: .35rem;
}
.nav-mobile-cta::after { opacity: 1 !important; transform: translateX(0) !important; color: #fff !important; }
.nav-mobile-backdrop {
  position: fixed;
  inset: 0;
  z-index: 998;
  background: rgba(0,0,0,.45);
  -webkit-backdrop-filter: blur(2px);
          backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease);
}
.nav-mobile-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}
body.nav-locked { overflow: hidden; }
@media (max-width: 860px) {
  .nav-burger             { display: block; margin-left: .15rem; }
  .nav-pill .nav-btn      { display: none; }
  .nav-pill               { gap: .35rem; padding: .42rem .65rem; max-width: calc(100vw - 1.25rem); }
  .nav-brand              { padding: .22rem .55rem; margin: 0; font-size: .92rem; }
  .nav-brand::after       { display: none; }
  .nav-pill               { top: calc(1rem + env(safe-area-inset-top)); }
  .nav-mobile             { top: calc(4.2rem + env(safe-area-inset-top)); }
}
/* overflow-x: clip — scrolling container yaratmıyor (overflow:hidden
   yaratıyordu), position:fixed elementler viewport-anchored kalıyor */
html, body { overflow-x: clip; }
*, *::before, *::after { box-sizing: border-box; }

/* Mobile/iPad — grid'i yumuşat (background ile birleşik) */
@media (max-width: 1024px) {
  .grid-bg {
    background-image:
      linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px);
    background-size: 48px 48px, 48px 48px;
    mask-image: radial-gradient(ellipse 70% 50% at 50% 30%, #000 18%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 70% 50% at 50% 30%, #000 18%, transparent 75%);
  }
}
@media (max-width: 600px) {
  .grid-bg {
    background-image:
      linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
    background-size: 40px 40px, 40px 40px;
    mask-image: radial-gradient(ellipse 80% 40% at 50% 25%, #000 14%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 80% 40% at 50% 25%, #000 14%, transparent 70%);
  }
}

/* ─── LEGAL PAGE LAYOUT ─── */
.legal-main {
  position: relative; z-index: 2;
  padding: 8rem 0 5rem;
  min-height: 100vh;
}
.legal-header {
  max-width: 820px;
  margin: 0 0 3rem;
  text-align: left;
}
.legal-back {
  display: inline-flex; align-items: center; gap: .35rem;
  font-family: var(--mono);
  font-size: .76rem;
  color: var(--muted);
  margin-bottom: 1.4rem;
  padding: .35rem .65rem .35rem .55rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.06);
  background: rgba(255,255,255,.02);
  transition: color .2s, border-color .2s, background .2s, transform .2s var(--ease);
}
.legal-back:hover {
  color: var(--g);
  border-color: rgba(61,220,154,.22);
  background: rgba(61,220,154,.04);
  transform: translateX(-2px);
}
.legal-meta-row {
  display: inline-flex; align-items: center; gap: .55rem;
  flex-wrap: wrap;
  margin-bottom: .9rem;
  line-height: 1;
}
/* Inside meta-row, neutralize kicker's standalone margin and equalize padding
   with the badge so both pills sit on a perfect horizontal axis. */
.legal-meta-row .kicker {
  margin-bottom: 0;
  padding: .28rem .6rem;
  font-size: .66rem;
  letter-spacing: .1em;
}
.legal-meta-row .legal-badge {
  line-height: 1;
}
.legal-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .28rem .6rem;
  border-radius: 999px;
  border: 1px solid rgba(61,220,154,.20);
  background: rgba(61,220,154,.06);
  color: #9cf7d3;
}
.legal-badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--g);
  box-shadow: 0 0 8px var(--g);
  animation: pulse 2.5s ease infinite;
}
.legal-title {
  font-family: var(--display);
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.045em;
  color: #fff;
  margin: .25rem 0 1rem;
  text-wrap: balance;
}
.legal-meta-line {
  display: flex; align-items: center;
  gap: .6rem;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: .72rem;
  color: var(--muted);
  letter-spacing: .04em;
  margin-bottom: 1.4rem;
}
.legal-meta-line strong { color: var(--text-soft); font-weight: 500; }
.legal-meta {
  font-family: var(--mono);
  font-size: .72rem;
  color: var(--muted);
  letter-spacing: .04em;
  margin-bottom: 1.4rem;
}
.legal-lead {
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.65;
  max-width: 720px;
  text-wrap: pretty;
}

/* Two-column shell: sticky sidebar TOC + main card */
.legal-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 3rem;
  align-items: start;
}

/* Sticky sidebar TOC (desktop only) */
.legal-toc-aside {
  position: sticky;
  top: 6rem;
  align-self: start;
  max-height: calc(100vh - 8rem);
  overflow-y: auto;
  padding-right: .25rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.12) transparent;
}
.legal-toc-aside::-webkit-scrollbar { width: 4px; }
.legal-toc-aside::-webkit-scrollbar-thumb { background: rgba(255,255,255,.10); border-radius: 4px; }

.legal-toc-title {
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--g);
  margin-bottom: .85rem;
  padding-left: .9rem;
}
.legal-toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .15rem;
  border-left: 1px solid rgba(255,255,255,.07);
}
.legal-toc-list li { margin: 0; }
.legal-toc-list a {
  position: relative;
  display: block;
  padding: .42rem .9rem;
  margin-left: -1px;
  font-size: .82rem;
  line-height: 1.4;
  color: var(--muted);
  border-left: 1px solid transparent;
  transition: color .2s, border-color .2s, background .2s, padding-left .2s;
}
.legal-toc-list a::before {
  content: counter(toc, decimal-leading-zero) '.';
  counter-increment: toc;
  font-family: var(--mono);
  font-size: .68rem;
  color: rgba(255,255,255,.18);
  margin-right: .55rem;
}
.legal-toc-list { counter-reset: toc; }
.legal-toc-list a:hover {
  color: #fff;
  background: rgba(255,255,255,.025);
}
.legal-toc-list a.active {
  color: var(--g);
  border-left-color: var(--g);
  background: linear-gradient(90deg, rgba(61,220,154,.08), transparent 60%);
  padding-left: 1.1rem;
  box-shadow: inset 2px 0 0 var(--g), -8px 0 18px -10px rgba(61,220,154,.5);
}
.legal-toc-list a.active::before { color: var(--g); }
.legal-toc-list a.active::after {
  content: '';
  position: absolute;
  left: -4px; top: 50%;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--g);
  transform: translateY(-50%);
  box-shadow: 0 0 10px var(--g), 0 0 18px rgba(61,220,154,.5);
  animation: pulse 2.5s ease infinite;
}

/* Mobile collapsible TOC (hidden on desktop) */
.legal-toc-mobile {
  display: none;
  margin-bottom: 1.8rem;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--r);
  background: rgba(255,255,255,.02);
  overflow: hidden;
}
.legal-toc-mobile summary {
  list-style: none;
  cursor: pointer;
  padding: .9rem 1.1rem;
  font-family: var(--mono);
  font-size: .76rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--g);
  display: flex; align-items: center; justify-content: space-between;
  user-select: none;
}
.legal-toc-mobile summary::-webkit-details-marker { display: none; }
.legal-toc-mobile summary::after {
  content: '+';
  font-size: 1.2rem;
  color: var(--muted);
  transition: transform .25s var(--ease);
}
.legal-toc-mobile[open] summary::after { transform: rotate(45deg); color: var(--g); }
.legal-toc-mobile ol {
  list-style: none;
  margin: 0;
  padding: 0 0 .8rem;
  border-top: 1px solid rgba(255,255,255,.06);
  counter-reset: tocm;
}
.legal-toc-mobile ol li { margin: 0; }
.legal-toc-mobile a {
  display: block;
  padding: .55rem 1.1rem;
  font-size: .85rem;
  color: var(--text);
  transition: background .2s, color .2s;
}
.legal-toc-mobile a::before {
  content: counter(tocm, decimal-leading-zero) '.';
  counter-increment: tocm;
  font-family: var(--mono);
  font-size: .7rem;
  color: var(--muted);
  margin-right: .5rem;
}
.legal-toc-mobile a:hover { background: rgba(255,255,255,.04); color: var(--g); }

/* Card surface (matches main page card system) */
.legal-card {
  position: relative;
  padding: 2.5rem 2.4rem;
  border-radius: var(--r2);
  border: var(--card-border);
  background: var(--card-surface);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  counter-reset: section;
}
.legal-card::after {
  content: '';
  position: absolute;
  top: 0; left: 2rem; right: 2rem; height: 1px;
  background: var(--card-edge-line);
  pointer-events: none;
}
.legal-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 2rem; right: 2rem; height: 1px;
  background: var(--card-edge-line-bottom);
  pointer-events: none;
  z-index: 1;
}

/* Section/typography for legal content */
.legal-section {
  padding: 1.6rem 0;
  border-top: 1px solid rgba(255,255,255,.06);
  counter-increment: section;
  scroll-margin-top: 6rem;
  /* reveal on scroll */
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}
.legal-section.in-view { opacity: 1; transform: translateY(0); }
.legal-section:first-of-type { border-top: 0; padding-top: .25rem; }
.legal-section h2 {
  display: flex; align-items: center; gap: .85rem;
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: -.02em;
  margin-bottom: 1rem;
  scroll-margin-top: 6rem;
  text-wrap: balance;
}
.legal-section h2::before {
  content: counter(section, decimal-leading-zero);
  display: inline-grid;
  place-items: center;
  width: 2rem; height: 2rem;
  border-radius: .55rem;
  font-family: var(--mono);
  font-size: .78rem;
  font-weight: 600;
  color: var(--g);
  background: linear-gradient(180deg, rgba(61,220,154,.10) 0%, rgba(61,220,154,.02) 100%);
  border: 1px solid rgba(61,220,154,.22);
  text-shadow: 0 0 10px rgba(61,220,154,.4);
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 0 0 0 rgba(61,220,154,0);
  transition: box-shadow .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease-spring);
}
.legal-section.in-view h2::before {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 0 18px rgba(61,220,154,.18);
  border-color: rgba(61,220,154,.34);
}
.legal-section h3 {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 600;
  color: #f4f7fb;
  margin: 1.1rem 0 .55rem;
}
.legal-section p {
  font-size: .95rem;
  color: var(--text);
  line-height: 1.75;
  margin-bottom: .95rem;
  text-wrap: pretty;
}
.legal-section ul, .legal-section ol {
  font-size: .94rem;
  color: var(--text);
  line-height: 1.75;
  margin: 0 0 1rem 1.3rem;
}
.legal-section li { margin-bottom: .35rem; }
.legal-section li::marker { color: var(--muted); }
.legal-section strong { color: #fff; font-weight: 600; }
.legal-section a {
  color: var(--g);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(61,220,154,.35);
  transition: text-decoration-color .2s, color .2s;
}
.legal-section a:hover { text-decoration-color: var(--g); }
.legal-section code {
  font-family: var(--mono);
  font-size: .85rem;
  padding: .1rem .4rem;
  border-radius: .25rem;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  color: var(--text-soft);
}

/* Inline definition / address blocks */
.legal-block {
  position: relative;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--r);
  padding: 1.05rem 1.2rem;
  background:
    linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,.005)),
    rgba(255,255,255,.02);
  font-family: var(--mono);
  font-size: .85rem;
  line-height: 1.8;
  color: var(--text);
  margin: 1rem 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.legal-block strong { color: #fff; }

/* Definition list (used in DMCA, 2257) */
.legal-dl {
  display: grid;
  grid-template-columns: minmax(140px, 200px) 1fr;
  gap: .6rem 1.2rem;
  margin: 1rem 0;
  padding: 1.1rem 1.25rem;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--r);
  background:
    linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,.005)),
    rgba(255,255,255,.02);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.legal-dl dt {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  align-self: start;
  padding-top: .15rem;
}
.legal-dl dd {
  font-size: .92rem;
  color: var(--text);
  line-height: 1.65;
}

/* Contact form (contact.html) */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}
.contact-card {
  position: relative;
  padding: 2rem;
  border-radius: var(--r2);
  border: var(--card-border);
  background: var(--card-surface);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  /* Page-load entrance */
  opacity: 0;
  animation: contactItemIn .9s cubic-bezier(.22,1,.36,1) .15s forwards;
}
.contact-card::after {
  content: '';
  position: absolute;
  top: 0; left: 1.5rem; right: 1.5rem; height: 1px;
  background: var(--card-edge-line);
  pointer-events: none;
}
.contact-card h2 {
  font-family: var(--display);
  font-size: 1.2rem; font-weight: 600;
  color: #fff;
  margin-bottom: 1.2rem;
}
.contact-form { display: grid; gap: 1rem; }
.contact-field { display: grid; gap: .35rem; }
.contact-field label {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-field input,
.contact-field select,
.contact-field textarea {
  width: 100%;
  padding: .8rem .9rem;
  border-radius: .7rem;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(10,11,16,.85);
  color: #fff;
  font-family: var(--sans);
  font-size: .92rem;
  transition: border-color .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
  outline: none;
}
.contact-field input:hover,
.contact-field select:hover,
.contact-field textarea:hover {
  border-color: rgba(255,255,255,.18);
  background: rgba(14,16,22,.9);
}
.contact-field select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-right: 2.4rem;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'><path d='M1 1.5L6 6.5L11 1.5' stroke='%2300ff9c' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 12px 8px;
  cursor: pointer;
}
.contact-field textarea { resize: vertical; min-height: 140px; line-height: 1.55; }
.contact-field input::placeholder,
.contact-field textarea::placeholder { color: rgba(180,190,210,.4); }
.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
  border-color: var(--card-border-accent);
  background-color: rgba(61,220,154,.04);
  box-shadow: 0 0 0 3px rgba(61,220,154,.10);
}
/* Force dark option dropdown across browsers */
.contact-field select option,
.contact-field select optgroup {
  background-color: #0a0b10;
  color: #f4f7fb;
  padding: .5rem;
}
.contact-field select option:checked,
.contact-field select option:hover {
  background: linear-gradient(0deg, rgba(61,220,154,.18), rgba(61,220,154,.18)), #0a0b10;
  color: var(--g);
}
.contact-submit {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.4rem;
  border-radius: 999px;
  border: 0;
  font-family: var(--sans);
  font-weight: 700;
  font-size: .92rem;
  cursor: pointer;
  background: linear-gradient(135deg, var(--g) 0%, #5fd4ff 48%, var(--b) 100%);
  color: #021008;
  isolation: isolate;
  overflow: hidden;
  text-shadow: 0 1px 0 rgba(255,255,255,.18);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.32),
    inset 0 -1px 0 rgba(0,0,0,.18),
    0 6px 18px rgba(61,220,154,.22);
  transition: transform .25s var(--ease-spring), box-shadow .25s var(--ease);
}
.contact-submit::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(110deg, rgba(255,255,255,0) 35%, rgba(255,255,255,.42) 50%, rgba(255,255,255,0) 65%);
  background-size: 220% 100%;
  background-position: -120% 0;
  background-repeat: no-repeat;
  pointer-events: none;
  mix-blend-mode: screen;
  z-index: 1;
  transition: background-position .8s var(--ease);
}
.contact-submit:hover {
  transform: translate(var(--mag-x), calc(var(--mag-y) - 2px)) scale(1.01);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.4),
    inset 0 -1px 0 rgba(0,0,0,.18),
    0 10px 32px var(--glow-g),
    0 0 0 1px rgba(61,220,154,.34),
    0 0 38px var(--glow-b);
}
.contact-submit:hover::after { background-position: 220% 0; }
.contact-submit:active {
  transform: translate(var(--mag-x), 0) scale(.99);
  box-shadow:
    inset 0 2px 4px rgba(0,0,0,.18),
    inset 0 -1px 0 rgba(255,255,255,.16),
    0 4px 12px rgba(61,220,154,.18);
}
.contact-meta { display: grid; gap: 1rem; }
.contact-meta-item {
  position: relative;
  display: grid; gap: .25rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--r);
  background: rgba(255,255,255,.02);
  transition: border-color .25s var(--ease), background .25s var(--ease), transform .25s var(--ease-spring), box-shadow .25s var(--ease);
  overflow: hidden;
  /* Page-load entrance — staggered fade-up via nth-child delay below */
  opacity: 0;
  animation: contactItemIn .8s cubic-bezier(.22,1,.36,1) forwards;
}
.contact-meta-item:nth-child(1) { animation-delay: .25s; }
.contact-meta-item:nth-child(2) { animation-delay: .32s; }
.contact-meta-item:nth-child(3) { animation-delay: .39s; }
.contact-meta-item:nth-child(4) { animation-delay: .46s; }
.contact-meta-item:nth-child(5) { animation-delay: .53s; }
.contact-meta-item:nth-child(6) { animation-delay: .60s; }
.contact-meta-item:nth-child(7) { animation-delay: .67s; }
@keyframes contactItemIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.contact-meta-item::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 2px; height: 0%;
  background: linear-gradient(180deg, var(--g), rgba(91,124,255,.4));
  transform: translateY(-50%);
  transition: height .35s var(--ease);
  border-radius: 0 2px 2px 0;
  box-shadow: 0 0 12px rgba(61,220,154,.4);
}
.contact-meta-item:hover {
  border-color: rgba(61,220,154,.22);
  background: rgba(61,220,154,.03);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px -10px rgba(61,220,154,.22), inset 0 1px 0 rgba(255,255,255,.04);
}
.contact-meta-item:hover::before { height: 60%; }
.contact-meta-k {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-meta-v { font-size: .94rem; color: #fff; }
.contact-meta-v a { color: var(--g); text-decoration: none; transition: color .2s; }
.contact-meta-v a:hover { color: #3ddc9a; text-decoration: underline; text-underline-offset: 3px; }

/* ─── FOOTER ─── */
footer {
  position: relative; z-index: 2;
  border-top: 1px solid rgba(61,93,255,.12);
  padding: 4rem 0 2rem;
  background: linear-gradient(180deg, rgba(4,7,14,.92), rgba(2,4,8,.96));
}
footer::before {
  content:'';position:absolute;top:0;left:0;right:0;height:1px;
  background: linear-gradient(90deg, transparent, var(--g), var(--b), var(--p), transparent);
  opacity: .55;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 3rem; }
.footer-brand {
  font-family: var(--brand);
  font-size: 1.15rem; font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff; display: flex; align-items: center; gap: .5rem;
  margin-bottom: 1rem;
}
.footer-brand-dot { width:8px;height:8px;border-radius:50%;background:var(--g);box-shadow:0 0 8px var(--g);animation:pulse 2.5s infinite; }
.footer-desc { font-size: .85rem; color: var(--muted); line-height: 1.65; max-width: 280px; margin-bottom: 1.25rem; }
.footer-col-title { font-size: .72rem; color: var(--g); font-family: var(--mono); letter-spacing: .1em; text-transform: uppercase; margin-bottom: .85rem; }
.footer-links { display: grid; gap: .55rem; }
.footer-link {
  position: relative;
  display: inline-block;
  font-size: .85rem;
  color: var(--muted);
  transition: color .25s var(--ease), transform .25s var(--ease);
}
.footer-link::before {
  content: '';
  position: absolute;
  left: 0; right: 100%; bottom: -2px;
  height: 1px;
  background: linear-gradient(90deg, var(--g), transparent);
  transition: right .35s var(--ease);
}
.footer-link:hover { color: #fff; }
.footer-link:hover::before { right: 30%; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 2rem; border-top: 1px solid var(--border);
  font-size: .78rem; color: var(--muted);
  flex-wrap: wrap; gap: 1rem;
}
.footer-legal-strip { display: inline-flex; gap: 1.1rem; flex-wrap: wrap; font-family: var(--mono); font-size: .7rem; }
.footer-legal-strip .footer-link { color: var(--muted); }
.footer-legal-strip .footer-link:hover { color: var(--g); }

/* Callout — for highlighting important sections (your-rights, perjury) */
.legal-callout {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .9rem 1rem;
  padding: 1rem 1.2rem 1rem 1.4rem;
  border-radius: var(--r);
  border: 1px solid rgba(61,220,154,.18);
  background: linear-gradient(180deg, rgba(61,220,154,.04), rgba(61,220,154,.01));
  margin: 1.1rem 0;
  overflow: hidden;
}
.legal-callout::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--g) 0%, rgba(91,124,255,.5) 50%, rgba(123,95,255,.4) 100%);
  box-shadow: 0 0 14px rgba(61,220,154,.4);
}
.legal-callout-icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(180deg, rgba(61,220,154,.18), rgba(61,220,154,.04));
  border: 1px solid rgba(61,220,154,.24);
  color: var(--g);
  font-family: var(--display);
  font-size: .92rem;
  font-weight: 700;
  flex-shrink: 0;
}
.legal-callout strong { color: #9cf7d3; display: block; margin-bottom: .15rem; }
.legal-callout p { margin-bottom: 0 !important; font-size: .9rem; }

/* Focus states (a11y polish) */
:focus-visible {
  outline: 2px solid var(--g);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Responsive */
@media (max-width: 1000px) {
  .legal-shell { grid-template-columns: 1fr; gap: 0; }
  .legal-toc-aside { display: none; }
  .legal-toc-mobile { display: block; }
}
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .legal-dl { grid-template-columns: 1fr; gap: .15rem .25rem; }
  .legal-dl dt { padding-top: .9rem; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; gap: 1.75rem; }
}
@media (max-width: 720px) {
  .legal-main      { padding: 6.5rem 0 3.5rem; }
  .legal-card      { padding: 1.8rem 1.5rem; }
  .legal-title     { font-size: clamp(1.8rem, 6vw, 2.4rem); }
  .legal-meta      { flex-wrap: wrap; gap: .5rem .9rem; }
  .legal-section   { margin-bottom: 2.25rem; }
  .legal-section h2 { font-size: 1.3rem; }
  .legal-section h3 { font-size: 1.05rem; }
  .legal-section p, .legal-section li { font-size: .95rem; line-height: 1.65; }
  .legal-callout   { padding: 1rem 1.1rem; }
  .legal-toc-mobile summary { padding: .85rem 1rem; }
  .footer-grid     { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .nav-pill .nav-link { display: none; }
  .nav-sep { display: none; }
  .nav-pill        { padding: .55rem .85rem; max-width: calc(100vw - 1.5rem); }
  .legal-card      { padding: 1.5rem 1.15rem; }
  .legal-main      { padding: 6rem 0 3rem; }
  .legal-section h2 { font-size: 1.2rem; }
  .legal-section h2::before { transform: scale(.85); transform-origin: left center; }
  .legal-eyebrow   { font-size: .68rem; letter-spacing: .14em; }
  .legal-back      { font-size: .82rem; }
  .footer-grid     { grid-template-columns: 1fr; }
  .footer-grid > :first-child { grid-column: auto; }
  /* Code/pre blocks should never overflow viewport on phones */
  .legal-section pre,
  .legal-section code { font-size: .8rem; word-break: break-word; }
  .legal-section table { display: block; overflow-x: auto; }
}
@media (max-width: 380px) {
  .wrap            { padding: 0 .85rem; }
  .legal-card      { padding: 1.3rem 1rem; }
  .legal-section h2 { font-size: 1.1rem; }
  .legal-section p, .legal-section li { font-size: .9rem; }
}

/* Print styles */
@media print {
  body { background: #fff; color: #111; }
  .grid-bg, .nav-pill, footer, .read-progress, .skip-link,
  .legal-back, .legal-toc-aside, .legal-toc-mobile { display: none !important; }
  .legal-main { padding: 0; }
  .legal-shell { display: block; }
  .legal-card {
    background: #fff !important;
    color: #111;
    border: 1px solid #ccc;
    box-shadow: none;
    padding: 0;
  }
  .legal-card::after { display: none; }
  .legal-title, .legal-section h2, .legal-section h3 { color: #111; }
  .legal-section p, .legal-section li { color: #333; }
  .legal-section a { color: #0a4; text-decoration: underline; }
  .legal-section h2::before {
    background: #fff;
    color: #0a4;
    border-color: #0a4;
    text-shadow: none;
  }
  .legal-section { opacity: 1 !important; transform: none !important; page-break-inside: avoid; }
}

/* Decorative motion is intentional — per-element guards above
   already handle the most intense effects (cursor glow, noise
   grain) for users who request reduced motion. We deliberately
   do NOT bulk-kill animations: card breath, badge glow, eyebrow
   flicker, and active TOC pulse are part of the page identity. */

/* ─── LIVING / VITAL MOTION LAYER ────────────────────
   Persistent subtle motion so legal pages feel alive
   matching the main landing page energy. */

/* Section number badges — soft glow breath when in view */
.legal-section.in-view h2::before {
  animation: legalBadgeGlow 4.2s ease-in-out infinite;
}
@keyframes legalBadgeGlow {
  0%, 100% {
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.08),
      0 0 18px rgba(61,220,154,.18);
    border-color: rgba(61,220,154,.34);
  }
  50% {
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.12),
      0 0 30px rgba(61,220,154,.40),
      0 0 60px rgba(61,220,154,.10);
    border-color: rgba(61,220,154,.55);
  }
}

/* Eyebrow / TOC titles — slow opacity shimmer */
.legal-eyebrow {
  animation: legalEyebrowFlicker 5s ease-in-out infinite;
}
@keyframes legalEyebrowFlicker {
  0%, 100% { opacity: 1; text-shadow: 0 0 0 rgba(61,220,154,0); }
  50%      { opacity: .82; text-shadow: 0 0 10px rgba(61,220,154,.35); }
}

/* TOC active link — soft pulse so reader knows where they are */
.legal-toc-list a.active {
  animation: legalTocActive 3.4s ease-in-out infinite;
}
@keyframes legalTocActive {
  0%, 100% { box-shadow: inset 2px 0 0 var(--g), -8px 0 18px -10px rgba(61,220,154,.5); }
  50%      { box-shadow: inset 2px 0 0 var(--g), -12px 0 28px -8px rgba(61,220,154,.85); }
}

/* Read progress bar — already animated by JS, but ensure smooth motion */
.read-progress { transition: width .12s linear; }

/* Legal card — static */
.legal-card { /* idle */ }

/* Callouts (warnings, info) — subtle border pulse */
.legal-callout {
  animation: legalCalloutPulse 4.6s ease-in-out infinite;
}
@keyframes legalCalloutPulse {
  0%, 100% { box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 4px 14px rgba(0,0,0,.25); }
  50%      { box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 4px 18px rgba(0,0,0,.30), 0 0 22px rgba(61,220,154,.10); }
}

/* Strong text inside body — animate underline/glow */
.legal-section a {
  background-image: linear-gradient(90deg, var(--g), var(--g));
  background-size: 0% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size .35s var(--ease), color .2s;
}
.legal-section a:hover { background-size: 100% 1px; }

/* Living motion above is part of the page identity — no bulk-kill. */

/* ═══════════════════════════════════════════════════════════════════
   Language switcher (desktop dropdown + mobile strip)
   Mirrors assets/css/style.css rules so make-money.html (and other
   pages that load legal.css) get a working language picker.
   ═══════════════════════════════════════════════════════════════════ */
.nav-lang {
  position: relative;
  z-index: 4;
  margin-right: .25rem;
}
.nav-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .34rem .55rem;
  border-radius: 999px;
  font-size: .78rem; font-weight: 500;
  color: #b8c0d0;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  cursor: pointer;
  text-shadow: 0 1px 2px rgba(0,0,0,.55);
  transition: background .2s, color .2s, border-color .2s;
  font-family: var(--sans, 'Inter', system-ui, sans-serif);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.nav-lang-btn:hover {
  background: rgba(255,255,255,.08);
  color: #fff;
  border-color: rgba(255,255,255,.14);
}
.nav-lang-btn svg {
  width: 10px; height: 10px;
  opacity: .65;
  transition: transform .2s var(--ease, ease);
}
.nav-lang.is-open .nav-lang-btn svg { transform: rotate(180deg); }
.nav-lang-menu {
  position: fixed;
  top: 0;
  right: 0;
  min-width: 168px;
  padding: .35rem;
  background: linear-gradient(180deg, #14161d 0%, #0a0b10 100%);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  box-shadow:
    0 0 0 1px rgba(0,0,0,.4),
    0 12px 28px rgba(0,0,0,.55),
    inset 0 1px 0 rgba(255,255,255,.04);
  opacity: 0;
  transform: translateY(-6px) scale(.96);
  pointer-events: none;
  transition: opacity .18s var(--ease, ease), transform .18s var(--ease, ease);
  z-index: 1100;
}
.nav-lang.is-open .nav-lang-menu,
.nav-lang-menu.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.nav-lang-opt {
  display: flex;
  align-items: center;
  gap: .55rem;
  width: 100%;
  padding: .48rem .65rem;
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: var(--text-soft, #b8c0d0);
  font-size: .82rem;
  font-family: var(--sans, 'Inter', system-ui, sans-serif);
  cursor: pointer;
  text-align: left;
  transition: background .15s, color .15s;
}
.nav-lang-opt:hover {
  background: rgba(255,255,255,.06);
  color: #fff;
}
.nav-lang-opt.is-active {
  background: rgba(61,220,154,.10);
  color: var(--g, #3ddc9a);
}
.nav-lang-opt .nl-code {
  font-family: var(--mono, 'JetBrains Mono', ui-monospace, monospace);
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .55;
  margin-left: auto;
}
.nav-lang-opt .nl-flag {
  width: 18px; height: 13px;
  border-radius: 2px;
  object-fit: cover;
  flex-shrink: 0;
}
@media (max-width: 720px) {
  .nav-lang { display: none; }
}
.nav-mobile-lang {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  padding: .65rem .25rem 0;
  margin-top: .5rem;
  border-top: 1px solid rgba(255,255,255,.08);
}
.nav-mobile-lang button {
  padding: .35rem .65rem;
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  color: var(--text-soft, #b8c0d0);
  font-size: .72rem;
  font-family: var(--mono, 'JetBrains Mono', ui-monospace, monospace);
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
}
.nav-mobile-lang button.is-active {
  background: rgba(61,220,154,.12);
  color: var(--g, #3ddc9a);
  border-color: rgba(61,220,154,.30);
}
