* { margin:0; padding:0; box-sizing:border-box; }
html {
  scroll-behavior: smooth;
  color-scheme: dark;
  background: #121212;
}

:root {
  --bg: #ffffff;
  --text-primary: #182536;
  --text-secondary: #455468;
  --text-tertiary: #5e6c7f;
  --card-bg: #ffffff;
  --border: rgba(31,59,91,0.16);
  --shadow-light: rgba(24,37,54,0.05);
}
[data-theme="dark"] {
  --bg: #121212;
  --text-primary: #f5f7fa;
  --text-secondary: #c6ced8;
  --text-tertiary: #98a3af;
  --card-bg: #1b1d22;
  --border: rgba(255,255,255,0.10);
  --shadow-light: rgba(0,0,0,0.32);
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  transition: background 0.4s ease, color 0.4s ease;
  min-height: 100vh;
}

/* Layout */
.page {
  max-width: 680px;
  margin: 0 auto;
  padding: 5rem 2rem 7rem;
}

/* Back link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-tertiary);
  text-decoration: none;
  margin-bottom: 3rem;
  transition: color 0.2s;
}
.back-link:hover { color: var(--text-primary); }
.back-link svg { width: 15px; height: 15px; }

/* Page title */
.page-title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}
.page-subtitle {
  font-size: 0.875rem;
  color: var(--text-tertiary);
  margin-bottom: 3rem;
}

/* Sections */
.section { margin-bottom: 2.5rem; }

.section-title {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 0.75rem;
}

h2 {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
  margin-top: 2rem;
}
h2:first-child { margin-top: 0; }

.section-body {
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--text-secondary);
}
.section-body p { margin-bottom: 0.75rem; }
.section-body p:last-child { margin-bottom: 0; }
.section-body a {
  color: var(--text-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s;
}
.section-body a:hover { opacity: 0.7; }
.section-body ul {
  padding-left: 1.25rem;
  margin-top: 0.5rem;
}
.section-body li { margin-bottom: 0.4rem; }

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(127,157,196,0.14);
  border: 1px solid var(--border);
  color: var(--text-tertiary);
  margin-bottom: 1rem;
}

/* Legal footer */
.legal-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  padding: 20px 2rem 28px;
  margin-top: auto;
  width: 100%;
  background: var(--bg);
  border-top: 1px solid var(--border);
  transition: background 0.4s ease;
}
.legal-footer a {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-tertiary);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.legal-footer a:hover { color: var(--text-primary); }
.legal-footer .dot { color: var(--text-tertiary); opacity: 0.35; font-size: 0.75rem; }
