/* Shared styles for the text pages (privacy, terms, support, reset password).
   Brand tokens — same as the app (DesignSystem/Brand.swift) and the landing page (index.php). */
:root {
  --bg: #0b0b0f;
  --ink: #f2f1f1;
  --body: #c9cbd6;
  --muted: #8b8e9e;
  --accent: #daf94e;
  --line: #2a2b35;
  --card: #14151c;
  --field: #1a1a24;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* Author display rules (grid/flex) must not un-hide elements marked hidden. */
[hidden] { display: none !important; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.75;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-underline-offset: 3px; }

header.site {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 24px clamp(20px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
}
.logo { display: block; line-height: 0; }
.logo img { height: 24px; width: auto; }
header.site nav { display: flex; gap: 18px; font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }
header.site nav a { color: var(--muted); text-decoration: none; }
header.site nav a:hover, header.site nav a[aria-current="page"] { color: var(--ink); }

/* Phones: logo and three links must fit on one row. */
@media (max-width: 480px) {
  header.site { padding: 20px; }
  .logo img { height: 20px; }
  header.site nav { gap: 12px; font-size: 10px; letter-spacing: 0.1em; }
}
@media (max-width: 360px) {
  header.site { padding: 18px 16px; gap: 10px; }
  .logo img { height: 17px; }
  header.site nav { gap: 9px; letter-spacing: 0.05em; }
}

main.page {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(32px, 6vh, 64px) clamp(20px, 5vw, 32px) 96px;
}
main.page h1 {
  font-weight: 800;
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}
main.page .updated { color: var(--muted); font-size: 12px; margin-bottom: 36px; }
main.page h2 {
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
  margin: 40px 0 12px;
  color: var(--accent);
}
main.page p, main.page li { color: var(--body); }
main.page p { margin-bottom: 14px; }
main.page ul { margin: 0 0 14px 20px; }
main.page li { margin-bottom: 6px; }
main.page strong { color: var(--ink); }

.card {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
}

form.stack { display: grid; gap: 12px; margin-top: 16px; }
form.stack label { font-size: 10px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
form.stack input {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--field);
  color: var(--ink);
  font: inherit;
}
form.stack input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
form.stack button {
  padding: 14px;
  border: 0;
  border-radius: 12px;
  background: var(--accent);
  color: var(--bg);
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
}
form.stack button[disabled] { opacity: 0.5; cursor: default; }
.notice { margin-top: 14px; font-size: 13px; }
.notice.error { color: #ff4d5e; }
.notice.ok { color: var(--accent); }

footer.site {
  border-top: 1px solid var(--line);
  padding: 24px clamp(20px, 5vw, 64px);
  color: var(--muted);
  font-size: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
footer.site a { color: var(--muted); }
