@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("fonts/plus-jakarta-sans-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("fonts/plus-jakarta-sans-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("fonts/plus-jakarta-sans-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("fonts/plus-jakarta-sans-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

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

:root {
  --red: #ef4444;
  --orange: #f97316;
  --yellow: #eab308;
  --green: #22c55e;
  --cyan: #06b6d4;
  --rainbow: linear-gradient(90deg, var(--red), var(--orange), var(--yellow), var(--green), var(--cyan), #3b82f6, #8b5cf6);
  --brand: #24408f;
  --brand-soft: #edf3ff;
  --bg: #f8fafc;
  --page: #ffffff;
  --surface: #ffffff;
  --surface-soft: #f1f5f9;
  --text: #182033;
  --muted: #5f6b7a;
  --faint: #8a95a6;
  --border: #d9e1ec;
  --shadow: 0 20px 60px rgba(28, 39, 62, 0.10);
  --radius: 8px;
}

[data-theme="dark"] {
  --brand: #8eafff;
  --brand-soft: #151f36;
  --bg: #10141d;
  --page: #111722;
  --surface: #171e2b;
  --surface-soft: #202938;
  --text: #f6f7fb;
  --muted: #b8c1d1;
  --faint: #838da0;
  --border: #2b3547;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.36);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, var(--page) 0%, var(--bg) 52%, var(--page) 100%);
  line-height: 1.7;
  overflow-x: hidden;
}

header,
main,
footer {
  overflow-x: clip;
}

a {
  color: inherit;
}

.rainbow-line {
  height: 3px;
  background: var(--rainbow);
}

.container {
  width: calc(100% - 40px);
  max-width: 980px;
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 72%, transparent);
  background: color-mix(in srgb, var(--page) 90%, transparent);
  backdrop-filter: blur(14px);
}

.nav {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-link,
.nav-links,
.nav-actions {
  display: flex;
  align-items: center;
}

.brand-link {
  gap: 10px;
  min-width: 0;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
}

.brand-link img {
  width: 34px;
  height: 34px;
}

.nav-links,
.nav-actions {
  gap: 10px;
}

.nav-links a {
  padding: 8px 10px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.nav-links a:hover,
.legal-section a:hover,
footer a:hover {
  color: var(--brand);
}

.theme-toggle {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-size: 1rem;
  box-shadow: 0 8px 20px rgba(20, 29, 48, 0.06);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.legal-hero {
  padding: 72px 0 38px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 12px;
  font-size: clamp(2.1rem, 5vw, 3rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.lead {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.04rem;
  overflow-wrap: anywhere;
}

.legal-meta {
  display: inline-flex;
  margin-top: 22px;
  padding: 10px 13px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    var(--rainbow) border-box;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.legal-content {
  padding: 16px 0 76px;
}

.legal-section {
  min-width: 0;
  padding: 28px 0;
  border-top: 1px solid var(--border);
}

.legal-section:first-child {
  border-top: 0;
}

.legal-section h2 {
  margin-bottom: 12px;
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  line-height: 1.2;
}

.legal-section h3 {
  margin: 20px 0 8px;
  font-size: 1rem;
}

.legal-section p,
.legal-section li {
  color: var(--muted);
  font-size: 0.96rem;
  overflow-wrap: anywhere;
}

.legal-section p {
  margin-bottom: 13px;
}

.legal-section ul {
  margin: 0 0 14px;
  padding-left: 22px;
}

.legal-section a {
  color: var(--brand);
  font-weight: 700;
  text-decoration: none;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 24px;
}

.summary-card {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.summary-card strong {
  display: block;
  margin-bottom: 6px;
}

.summary-card span {
  color: var(--muted);
  font-size: 0.92rem;
  overflow-wrap: anywhere;
}

footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  color: var(--faint);
  font-size: 0.9rem;
}

footer .container {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

footer a {
  color: var(--muted);
  text-decoration: none;
}

@media (max-width: 760px) {
  .container {
    width: calc(100% - 28px);
    max-width: 980px;
  }

  .nav {
    min-height: 62px;
    gap: 12px;
  }

  .nav-links,
  .nav-actions .button {
    display: none;
  }

  .brand-link span {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .legal-hero {
    padding: 48px 0 28px;
  }

  .lead,
  .legal-section,
  .summary-grid {
    max-width: 330px;
  }

  .summary-grid {
    grid-template-columns: 1fr;
  }

  footer .container {
    display: block;
  }

  footer span {
    display: block;
    margin-bottom: 8px;
  }
}
