/* ----------------------------------------------------------------
   Twitter Replier — Privacy Policy
   Minimalist stylesheet with light & dark modes
----------------------------------------------------------------- */

:root {
  --bg: #ffffff;
  --surface: #f7f8fa;
  --text: #1a1a1a;
  --muted: #5c6470;
  --border: #e4e7ec;
  --accent: #1d9bf0;
  --max-width: 720px;
  --radius: 10px;
}

:root[data-theme="dark"] {
  --bg: #0f1419;
  --surface: #16202a;
  --text: #e7e9ea;
  --muted: #8b98a5;
  --border: #2a3742;
  --accent: #1d9bf0;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  line-height: 1.65;
  font-size: 16px;
  transition: background 0.2s ease, color 0.2s ease;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

/* Header ------------------------------------------------------- */

header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

h1 {
  font-size: 1.6rem;
  line-height: 1.25;
  margin: 0 0 0.35rem;
  letter-spacing: -0.01em;
}

.updated {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0;
}

/* Theme toggle ------------------------------------------------- */

.theme-toggle {
  flex: 0 0 auto;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  font-size: 0.85rem;
  cursor: pointer;
  line-height: 1;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.theme-toggle:hover {
  border-color: var(--accent);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Content ------------------------------------------------------ */

h2 {
  font-size: 1.15rem;
  margin: 2.25rem 0 0.6rem;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1rem;
}

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

a:hover {
  text-decoration: underline;
}

ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

li {
  margin-bottom: 0.4rem;
}

strong {
  font-weight: 600;
}

.lead {
  color: var(--muted);
  font-size: 1.05rem;
}

.note {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  margin: 1.25rem 0;
  font-size: 0.95rem;
}

.note p:last-child {
  margin-bottom: 0;
}

footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
}

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