@font-face {
  font-family: "Sora";
  src: url("../fonts/sora-var-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-var-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #07111f;
  --panel: #0a1728;
  --ink: #f4f8ff;
  --body: #c4d2e2;
  --muted: #8fa5bb;
  --line: rgba(173, 209, 242, 0.14);
  --cyan: #58dfff;
  --font-display: "Sora", "Segoe UI Variable Display", sans-serif;
  --font-body: "Manrope", "Segoe UI Variable Text", sans-serif;
  --font-mono: "Cascadia Mono", Consolas, monospace;
  --shell: min(900px, calc(100% - 44px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--body);
  font: 15px/1.8 var(--font-body);
  font-weight: 300;
  background:
    radial-gradient(ellipse 75% 45% at 82% 0%, rgba(39, 123, 255, 0.12), transparent 64%),
    radial-gradient(ellipse 55% 48% at 0% 70%, rgba(146, 123, 255, 0.07), transparent 65%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: rgba(88, 223, 255, 0.24); color: #fff; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }

.legal-header {
  border-bottom: 1px solid var(--line);
  background: rgba(4, 10, 18, 0.55);
}
.legal-nav {
  width: var(--shell);
  min-height: 82px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  line-height: 1;
}
.brand-orb {
  position: relative;
  display: block;
  width: 17px;
  height: 17px;
  border: 1px solid rgba(189, 234, 255, 0.3);
  border-radius: 50%;
  background: radial-gradient(circle at 34% 26%, #f3ffff 0%, #9df3ff 22%, #3b9eff 55%, #6b48dc 78%, #08121f 100%);
  box-shadow: 0 0 16px rgba(88, 223, 255, 0.18);
}
.brand-orb::after {
  content: "";
  position: absolute;
  width: 23px;
  height: 8px;
  top: 4px;
  left: -3.5px;
  border: 1px solid rgba(195, 240, 255, 0.35);
  border-radius: 50%;
  transform: rotate(-28deg);
}
.brand-word {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.34em;
}
.back-link {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.25s ease;
}
.back-link:hover { color: var(--ink); }

.legal-main {
  width: var(--shell);
  margin-inline: auto;
  padding-block: 82px 100px;
}
.legal-eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}
.legal-eyebrow::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(88, 223, 255, 0.8);
}
h1 {
  max-width: 13ch;
  margin: 22px 0 18px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 4.8rem);
  font-weight: 300;
  letter-spacing: -0.06em;
  line-height: 0.98;
}
.legal-lede {
  max-width: 60ch;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}
.template-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 34px;
  padding: 14px 16px;
  border: 1px solid rgba(217, 140, 255, 0.2);
  border-radius: 10px;
  background: rgba(145, 95, 220, 0.06);
  color: #c7b6da;
  font-size: 11px;
  line-height: 1.65;
}
.template-note strong { color: #e6d4f8; font-weight: 600; }
.legal-content {
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}
.legal-content section { padding-bottom: 30px; }
.legal-content h2 {
  margin: 0 0 12px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.35;
}
.legal-content h2 span {
  margin-right: 9px;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  vertical-align: 2px;
}
.legal-content p { max-width: 68ch; margin: 0 0 12px; font-size: 13.5px; line-height: 1.85; }
.legal-content ul { margin: 0 0 12px; padding-left: 19px; }
.legal-content li { margin-bottom: 7px; padding-left: 2px; font-size: 13.5px; }
.legal-content li::marker { color: rgba(88, 223, 255, 0.65); }
.legal-content a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.legal-content a:hover { text-decoration-color: var(--cyan); }
.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  margin-top: 12px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
  color: #708399;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.06em;
  line-height: 1.6;
  text-transform: uppercase;
}
.legal-footer {
  border-top: 1px solid var(--line);
  padding-block: 24px;
}
.legal-footer-inner {
  width: var(--shell);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 13px;
  color: #708399;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.legal-footer a { text-decoration: none; }
.legal-footer a:hover { color: var(--ink); }
.legal-footer nav { display: flex; gap: 20px; }

@media (max-width: 620px) {
  .legal-main { padding-block: 55px 72px; }
  .legal-nav { min-height: 70px; }
  .legal-content { margin-top: 35px; padding-top: 28px; }
  .legal-footer-inner { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
