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

:root {
  color-scheme: dark;
  --bg: #07090f;
  --bg2: #0d1117;
  --surface: #111827;
  --border: #1f2d42;
  --border2: #2a3a52;
  --indigo: #6366f1;
  --violet: #8b5cf6;
  --green: #34d399;
  --text: #f0f4ff;
  --text2: #94a3b8;
  --text3: #64748b;
}

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitchTiles'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='.025'/%3E%3C/svg%3E");
}

nav {
  position: sticky;
  top: 0;
  z-index: 10;
  height: 64px;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(7, 9, 15, .82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: var(--text);
  font-size: 1.18rem;
  font-weight: 750;
  letter-spacing: -.02em;
  text-decoration: none;
}

.brand-logo {
  width: 38px;
  height: 38px;
  display: block;
  filter: drop-shadow(0 0 12px rgba(56, 189, 248, .45));
  transition: transform .25s ease;
}

.brand:hover .brand-logo {
  transform: scale(1.08);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .48rem 1rem;
  border-radius: 8px;
  color: #fff;
  font-size: .84rem;
  font-weight: 650;
  text-decoration: none;
  background: linear-gradient(135deg, var(--indigo), var(--violet));
  box-shadow: 0 0 25px rgba(99, 102, 241, .32);
}

.legal-hero {
  position: relative;
  overflow: hidden;
  padding: 5.5rem 1rem 3rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.legal-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -210px;
  left: 50%;
  width: 780px;
  height: 560px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(99, 102, 241, .2), transparent 70%);
}

.section-tag {
  color: #818cf8;
  font-size: .75rem;
  font-weight: 750;
  letter-spacing: .1em;
  text-transform: uppercase;
}

h1 {
  margin: .35rem 0 .65rem;
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -.05em;
  background: linear-gradient(135deg, #a5b4fc 0%, #818cf8 35%, #c084fc 72%, #f0abfc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.legal-hero p {
  color: var(--text2);
  font-size: 1.02rem;
}

.legal-content {
  position: relative;
  width: min(860px, calc(100% - 2rem));
  margin: 3rem auto 5rem;
  padding: clamp(1.4rem, 4vw, 2.5rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .28);
}

.updated {
  display: block;
  margin-bottom: 1.6rem;
  color: var(--text3);
  font-size: .78rem;
}

h2 {
  margin: 2.35rem 0 .65rem;
  color: var(--text);
  font-size: 1.25rem;
  letter-spacing: -.02em;
}

p, li, td { color: var(--text2); }
p + p { margin-top: .8rem; }
ul { margin: .7rem 0 0 1.25rem; }
li + li { margin-top: .35rem; }
strong, th { color: var(--text); }
.legal-content a { color: #a5b4fc; }

.note, .summary {
  margin: 1.5rem 0;
  padding: 1rem 1.1rem;
  color: var(--text2);
  background: rgba(99, 102, 241, .08);
  border: 1px solid rgba(99, 102, 241, .28);
  border-radius: 10px;
}

.summary {
  background: rgba(52, 211, 153, .06);
  border-color: rgba(52, 211, 153, .25);
}

.table-wrap {
  margin-top: 1rem;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
}

th, td {
  padding: .8rem;
  text-align: left;
  vertical-align: top;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

th:last-child, td:last-child { border-right: 0; }
tbody tr:last-child td { border-bottom: 0; }
th { background: var(--bg2); }

footer {
  padding: 2.3rem 1.5rem;
  color: var(--text3);
  font-size: .78rem;
  border-top: 1px solid var(--border);
}

.footer-inner {
  width: min(960px, 100%);
  margin: auto;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

footer a {
  margin-left: 1rem;
  color: var(--text2);
  text-decoration: none;
}

@media (max-width: 640px) {
  nav { padding: 0 1rem; }
  .nav-cta { font-size: 0; }
  .nav-cta::after { content: "OpenRouter →"; font-size: .78rem; }
  .legal-hero { padding-top: 4.3rem; }
  .legal-content { margin-top: 1.5rem; }
  footer a { margin-left: .7rem; }
}
