:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --text: #172033;
  --muted: #667085;
  --border: #e4e7ec;
  --accent: #1769aa;
  --shadow: 0 18px 50px rgba(16, 24, 40, 0.08);
}

html[data-theme="dark"],
body.dark,
[data-theme="dark"] {
  --bg: #0d1117;
  --surface: #151b23;
  --text: #eef2f6;
  --muted: #a6b0bf;
  --border: #2a3340;
  --accent: #6cb6ff;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}

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

a:hover {
  text-decoration: underline;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 28px;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

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

.brand-logo {
  display: block;
  width: auto;
  height: 40px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle,
.back-link {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 10px;
  min-height: 40px;
}

.theme-toggle {
  width: 42px;
  cursor: pointer;
  font-size: 18px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  font-weight: 600;
}

.legal-shell {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0 72px;
}

.hero {
  max-width: 820px;
  margin-bottom: 28px;
}

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

.hero h1 {
  margin: 0;
  font-size: clamp(2.1rem, 6vw, 3.7rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.hero > p:not(.eyebrow):not(.last-updated) {
  margin: 18px 0 0;
  max-width: 760px;
  color: var(--muted);
  font-size: 1.05rem;
}

.last-updated {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.legal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: clamp(26px, 5vw, 54px);
}

.legal-card h2 {
  margin: 38px 0 10px;
  padding-top: 4px;
  font-size: 1.32rem;
  line-height: 1.35;
}

.legal-card h2:first-of-type {
  margin-top: 30px;
}

.legal-card p {
  margin: 0 0 14px;
}

.legal-card ul {
  margin: 8px 0 18px;
  padding-left: 24px;
}

.legal-card li {
  margin-bottom: 8px;
}

.contact-block {
  margin: 14px 0 28px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: color-mix(in srgb, var(--bg) 65%, var(--surface));
}

.contact-block p {
  margin: 0;
}

.acceptance {
  margin-top: 34px !important;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-weight: 600;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 28px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  background: var(--surface);
  font-size: 0.9rem;
}

@media (max-width: 700px) {
  .site-header {
    padding: 12px 16px;
  }

  .brand-logo {
    height: 34px;
  }

  .back-link {
    padding: 0 10px;
    font-size: 0.86rem;
  }

  .legal-shell {
    width: min(100% - 20px, 1080px);
    padding: 34px 0 48px;
  }

  .legal-card {
    border-radius: 14px;
    padding: 22px 18px;
  }

  footer {
    flex-direction: column;
    padding: 18px 16px;
  }
}
