/*
THESIS: Legal information should feel like a clear part of Shpagin AI, not a pasted legal template.
OWN-WORLD: Cream reading field, cobalt wayfinding, lime actions, hard black rules, Archivo/system typography.
STORY: The reader sees the answer first, can scan the contents, then verify precise terms and controls.
FIRST VIEWPORT: Compact brand nav above a cobalt document header with title, status and short plain-language summary.
FORM: A quiet editorial document inherited from the main site; sticky contents on desktop, linear reading on mobile.
*/
:root {
  --cream: #f1f0ea;
  --cream-2: #e8e7df;
  --ink: #0b0b0c;
  --muted: #5c5c58;
  --blue: #1d2bff;
  --blue-deep: #0a14c8;
  --lime: #c8f135;
  --max: 1120px;
}

* { box-sizing: border-box; min-width: 0; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--cream);
  font-family: "Archivo", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button { font-family: inherit; }
::selection { color: var(--ink); background: var(--lime); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.wrap { width: min(var(--max), calc(100% - 48px)); margin-inline: auto; }

.doc-nav {
  position: sticky;
  z-index: 80;
  top: 0;
  border-bottom: 1px solid rgba(11, 11, 12, 0.1);
  background: rgba(241, 240, 234, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.doc-nav__inner {
  min-height: 70px;
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
}

.doc-logo {
  color: var(--ink);
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -0.045em;
  text-decoration: none;
}

.doc-back {
  min-height: 44px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  padding: 10px 17px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  background: var(--lime);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease;
}

.doc-back:hover { transform: translateY(-1px); background: #fff; }

.doc-main { padding: 18px 0 82px; }

.doc-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(30px, 6vw, 64px);
  border-radius: 30px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue-deep), var(--blue) 58%, #4a5cff);
}

.doc-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: radial-gradient(65% 90% at 94% 0%, rgba(255,255,255,.22), transparent 62%);
  pointer-events: none;
}

.doc-kicker {
  margin: 0 0 18px;
  color: var(--lime);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.doc-hero h1 {
  max-width: 16ch;
  margin: 0;
  font-size: clamp(34px, 6.2vw, 67px);
  font-weight: 900;
  line-height: 0.93;
  letter-spacing: -0.047em;
  text-wrap: balance;
}

.doc-hero__summary {
  max-width: 64ch;
  margin: 23px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(15px, 2vw, 18px);
  font-weight: 520;
  line-height: 1.55;
}

.doc-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}

.doc-hero__meta span {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.1);
  font-size: 11.5px;
  font-weight: 720;
}

.doc-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(32px, 6vw, 78px);
  align-items: start;
  margin-top: 52px;
}

.doc-aside {
  position: sticky;
  top: 100px;
  padding-top: 3px;
}

.doc-aside__title {
  margin: 0 0 13px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.doc-aside a {
  display: block;
  padding: 8px 0;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 650;
  line-height: 1.35;
  text-decoration: none;
  transition: color 160ms ease, transform 160ms ease;
}

.doc-aside a:hover { color: var(--blue); transform: translateX(3px); }

.doc-mobile-nav { display: none; }

.doc-content {
  width: 100%;
  max-width: 780px;
}

.doc-lead {
  margin: 0 0 42px;
  padding: 22px 24px;
  border: 1.5px solid rgba(11, 11, 12, 0.12);
  border-radius: 20px;
  background: #fff;
  color: var(--muted);
  font-size: 15px;
  font-weight: 570;
  line-height: 1.62;
}

.doc-lead strong { color: var(--ink); }

.doc-section {
  scroll-margin-top: 100px;
  padding: 37px 0 4px;
  border-top: 1.5px solid rgba(11, 11, 12, 0.16);
}

.doc-section:first-of-type { padding-top: 0; border-top: 0; }

.doc-section h2 {
  max-width: 25ch;
  margin: 0 0 17px;
  font-size: clamp(22px, 3vw, 29px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.doc-section h3 {
  margin: 25px 0 10px;
  font-size: 17px;
  font-weight: 850;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.doc-section p,
.doc-section li {
  max-width: 72ch;
  color: #242426;
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.72;
}

.doc-section p { margin: 0 0 14px; }
.doc-section ul,
.doc-section ol { margin: 12px 0 18px; padding-left: 22px; }
.doc-section li { margin: 0 0 8px; padding-left: 3px; }
.doc-section a { color: var(--blue); font-weight: 650; text-underline-offset: 3px; }

.doc-facts {
  display: grid;
  grid-template-columns: minmax(145px, 0.34fr) 1fr;
  gap: 0;
  margin: 18px 0 22px;
  border-top: 1.5px solid var(--ink);
}

.doc-facts dt,
.doc-facts dd {
  margin: 0;
  padding: 13px 0;
  border-bottom: 1px solid rgba(11, 11, 12, 0.14);
  font-size: 13.5px;
  line-height: 1.5;
}

.doc-facts dt { padding-right: 18px; color: var(--muted); font-weight: 720; }
.doc-facts dd { color: var(--ink); font-weight: 560; }

.doc-callout {
  margin: 23px 0;
  padding: 20px 22px;
  border-radius: 18px;
  color: var(--ink);
  background: var(--lime);
}

.doc-callout--quiet { background: var(--cream-2); }
.doc-callout p { margin: 0; color: inherit; font-size: 14px; font-weight: 630; line-height: 1.55; }

.doc-action {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
  padding: 11px 18px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  color: var(--ink) !important;
  background: var(--lime);
  font-size: 13px;
  font-weight: 820 !important;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease;
}

.doc-action:hover { transform: translateY(-1px); background: #fff; }

.doc-footer {
  padding: 42px 0 max(42px, env(safe-area-inset-bottom));
  border-radius: 30px 30px 0 0;
  color: var(--cream);
  background: var(--ink);
}

.doc-footer__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: end;
}

.doc-footer__brand { margin: 0 0 7px; font-size: 22px; font-weight: 900; letter-spacing: -0.04em; }
.doc-footer p { margin: 0; color: rgba(241,240,234,.6); font-size: 12.5px; line-height: 1.55; }
.doc-footer__links { display: flex; flex-wrap: wrap; gap: 9px 16px; justify-content: flex-end; }
.doc-footer a { color: rgba(241,240,234,.86); font-size: 12.5px; font-weight: 650; }
.doc-footer a:hover { color: var(--lime); }

@media (max-width: 800px) {
  .doc-layout { grid-template-columns: 1fr; gap: 24px; margin-top: 34px; }
  .doc-aside { display: none; }
  .doc-mobile-nav { display: block; margin-bottom: 4px; }
  .doc-mobile-nav summary {
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 14px;
    border: 1.5px solid rgba(11, 11, 12, 0.18);
    border-radius: 14px;
    background: #fff;
    font-size: 13px;
    font-weight: 780;
    cursor: pointer;
    list-style: none;
  }
  .doc-mobile-nav summary::-webkit-details-marker { display: none; }
  .doc-mobile-nav summary::after { content: "+"; font-size: 20px; }
  .doc-mobile-nav[open] summary::after { content: "−"; }
  .doc-mobile-nav__links { display: grid; gap: 2px; padding: 9px 5px 2px; }
  .doc-mobile-nav__links a { padding: 8px 9px; color: var(--muted); font-size: 12.5px; font-weight: 650; }
  .doc-content { max-width: none; }
}

@media (max-width: 600px) {
  .wrap { width: min(100% - 28px, var(--max)); }
  .doc-nav__inner { min-height: 64px; }
  .doc-back { padding-inline: 14px; font-size: 12px; }
  .doc-main { padding-top: 10px; padding-bottom: 58px; }
  .doc-hero { padding: 28px 22px 30px; border-radius: 22px; }
  .doc-hero h1 { font-size: clamp(31px, 10.2vw, 45px); }
  .doc-hero__summary { margin-top: 18px; font-size: 14.5px; }
  .doc-hero__meta { margin-top: 21px; }
  .doc-lead { padding: 19px; margin-bottom: 34px; font-size: 14px; }
  .doc-section { padding-top: 31px; }
  .doc-section p,
  .doc-section li { font-size: 15px; line-height: 1.67; overflow-wrap: anywhere; }
  .doc-facts { grid-template-columns: 1fr; }
  .doc-facts dt { padding-bottom: 3px; border-bottom: 0; }
  .doc-facts dd { padding-top: 0; }
  .doc-footer__inner { grid-template-columns: 1fr; align-items: start; }
  .doc-footer__links { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media print {
  .doc-nav,
  .doc-aside,
  .doc-mobile-nav,
  .doc-footer,
  #privacy-controls { display: none !important; }
  body { background: #fff; }
  .doc-main { padding: 0; }
  .doc-hero { padding: 0 0 24px; color: #000; background: none; }
  .doc-hero__summary,
  .doc-hero__meta span,
  .doc-kicker { color: #000; }
  .doc-layout { display: block; margin: 0; }
  .doc-content { max-width: none; }
}
