:root {
  --blue: #0969e9;
  --cyan: #11bced;
  --text: #f5f7f9;
  --muted: #9aa3ac;
  --line: rgba(255, 255, 255, .11);
  --page: min(900px, calc(100% - 40px));
}

* { box-sizing: border-box; }

html { min-height: 100%; }

body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  color: var(--text);
  background:
    radial-gradient(circle at 82% 6%, rgba(17, 188, 237, .1), transparent 29%),
    radial-gradient(circle at 8% 70%, rgba(9, 105, 233, .08), transparent 32%),
    linear-gradient(145deg, #24272b 0%, #111316 48%, #030405 100%);
  background-attachment: fixed;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { display: block; max-width: 100%; }

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  color: #fff;
  background: #111417;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .16);
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  background: rgba(8, 10, 12, .68);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(1180px, calc(100% - 40px));
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  width: 190px;
  padding: 7px 11px;
  border-radius: 11px;
  background: rgba(255, 255, 255, .96);
}

.back-link {
  color: var(--muted);
  font-size: .85rem;
  font-weight: 750;
  text-decoration: none;
  transition: color .2s ease;
}

.back-link:hover { color: var(--text); }

.brand:focus-visible,
.back-link:focus-visible,
.legal-card a:focus-visible,
.footer-links a:focus-visible {
  outline: 3px solid rgba(17, 188, 237, .5);
  outline-offset: 4px;
}

.legal-main {
  width: var(--page);
  margin: 0 auto;
  padding: 82px 0 100px;
}

.eyebrow {
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #66dafa;
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--cyan);
  box-shadow: 13px 0 0 var(--blue);
  content: "";
}

h1 {
  margin: 0 0 38px;
  color: transparent;
  background: linear-gradient(100deg, var(--blue), var(--cyan));
  background-clip: text;
  -webkit-background-clip: text;
  font-size: clamp(2.65rem, 7vw, 5rem);
  line-height: 1;
  letter-spacing: -.06em;
}

.legal-card {
  padding: clamp(28px, 6vw, 58px);
  border: 1px solid var(--line);
  border-radius: 30px;
  background: linear-gradient(145deg, rgba(39, 43, 48, .84), rgba(11, 13, 15, .92));
  box-shadow: 0 30px 80px rgba(0, 0, 0, .3);
}

.legal-section + .legal-section {
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

h2 {
  margin: 0 0 12px;
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  line-height: 1.25;
  letter-spacing: -.025em;
}

h3 {
  margin: 26px 0 8px;
  font-size: 1rem;
}

p, ul, address { margin: 0; color: var(--muted); }
p + p { margin-top: 14px; }

address {
  font-style: normal;
  white-space: normal;
}

.legal-card a {
  color: #72dffc;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

ul {
  padding-left: 20px;
}

li + li { margin-top: 7px; }

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, .07);
  background: rgba(3, 4, 5, .72);
  backdrop-filter: blur(14px);
}

.footer-inner {
  width: min(1180px, calc(100% - 40px));
  min-height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: .78rem;
}

.footer-links { display: flex; gap: 22px; }

.footer-links a {
  font-weight: 700;
  text-decoration: none;
}

.footer-links a[aria-current="page"] { color: var(--text); }

@media (max-width: 640px) {
  :root { --page: min(100% - 28px, 900px); }

  .header-inner,
  .footer-inner { width: min(100% - 28px, 1180px); }

  .header-inner { min-height: 70px; }
  .brand { width: 158px; }
  .back-link { font-size: .78rem; }
  .legal-main { padding: 58px 0 72px; }
  .legal-card { border-radius: 23px; }

  .footer-inner {
    min-height: 108px;
    padding: 22px 0;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: .01ms !important; }
}
