/* Stylesheet for the generated legal pages (public/privacy.html, public/terms.html).
   Loaded as an external file so the pages need no inline styles or scripts. */

:root {
  color-scheme: dark;
  --bg: #0b0f14;
  --surface: #11161d;
  --text: #e6e9ee;
  --muted: #9aa4b2;
  --accent: #e9b44c;
  --border: #242c36;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f5f1;
    --surface: #ffffff;
    --text: #1b1f24;
    --muted: #5a6472;
    --border: #e2e0d8;
  }
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  text-decoration-thickness: 2px;
}

code {
  font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  font-size: 0.92em;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0 4px;
}

.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(16px, 4vw, 40px);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.legal-brand {
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.legal-header nav {
  display: flex;
  gap: 18px;
  font-size: 14px;
  flex-wrap: wrap;
}

.legal-header nav a[aria-current='page'] {
  color: var(--text);
  font-weight: 600;
}

.legal {
  flex: 1;
  width: min(760px, 100% - 32px);
  margin: 0 auto;
  padding: 32px 0 64px;
}

.legal h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  line-height: 1.2;
  margin: 0 0 8px;
}

.legal h2 {
  font-size: 1.2rem;
  margin: 36px 0 10px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.legal h3 {
  font-size: 1.05rem;
  margin: 22px 0 8px;
}

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

.legal strong {
  color: var(--text);
}

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

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

.legal-summary {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  padding: 14px 18px;
  margin: 0 0 24px;
  color: var(--text);
}

.legal-summary p {
  margin: 0;
}

.legal-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  padding: 16px;
}

.legal-footer p {
  margin: 0;
}

@media (max-width: 520px) {
  .legal-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}
