:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-secondary: #f2f5fa;
  --bg-tertiary: #eef3f7;
  --surface: rgba(255, 255, 255, 0.94);
  --surface-strong: rgba(255, 255, 255, 0.98);
  --border: rgba(0, 0, 0, 0.08);
  --text: #101828;
  --muted: #556070;
  --accent: #1c6bf5;
  --accent-secondary: #5856d6;
  --accent-soft: rgba(28, 107, 245, 0.08);
  --shadow: rgba(16, 24, 40, 0.08);
  --max-width: 900px;
}

@font-face {
  font-family: "Montserrat";
  src: url("./assets/fonts/Montserrat-VariableFont_wght.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background:
    radial-gradient(circle at top left, rgba(28, 107, 245, 0.11), transparent 34%),
    radial-gradient(circle at top right, rgba(88, 86, 214, 0.08), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f7f9fc 44%, #eef3f9 100%);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

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

.legal-page {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
  padding: 18px 0 36px;
}

.legal-topbar,
.legal-content,
.legal-footer,
.legal-link {
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 48px var(--shadow);
}

.legal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
}

.brand-header {
  width: auto;
  height: 34px;
}

.topbar-links,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.legal-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 14px;
  font-weight: 700;
  transition: transform 140ms ease;
}

.legal-link:hover {
  transform: translateY(-1px);
}

.legal-link.is-active {
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  color: #ffffff;
}

.legal-content {
  padding: 28px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 249, 253, 0.94));
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.effective-date {
  margin: 16px 0 0;
  color: var(--muted);
  font-weight: 600;
}

.intro,
.legal-section p,
.legal-section li,
.legal-footer {
  color: var(--muted);
  line-height: 1.75;
}

.intro {
  margin-top: 20px;
}

.legal-section {
  margin-top: 28px;
}

.legal-section h2 {
  margin: 0 0 10px;
  font-size: 1.15rem;
}

.legal-section p,
.legal-section ul {
  margin: 0;
}

.legal-section ul {
  padding-left: 20px;
}

.legal-section ul + p,
.legal-section p + ul,
.legal-section p + p {
  margin-top: 12px;
}

.legal-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  padding: 22px 18px;
  border-radius: 22px;
  text-align: center;
}

.legal-footer p {
  margin: 0;
}

@media (max-width: 720px) {
  .legal-page {
    width: min(calc(100% - 24px), var(--max-width));
    padding-top: 14px;
  }

  .legal-topbar,
  .legal-content,
  .legal-footer {
    border-radius: 18px;
  }

  .legal-topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .topbar-links,
  .footer-links,
  .legal-link {
    width: 100%;
  }

  .legal-content {
    padding: 22px 18px;
  }

  h1 {
    font-size: clamp(2rem, 10vw, 3rem);
  }
}
