/* HedPop legal/support pages. One theme (dark), one accent (#FFA77F), one radius (12px). */
:root {
  --bg: #0d0d0e;
  --surface: #161617;
  --line: #2a2a2c;
  --text: #f1f0ee;
  --muted: #b4b2ae;
  --accent: #ffa77f;
  --accent-ink: #1a0f0a;
  --radius: 12px;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 var(--sans);
}

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap { max-width: 720px; margin: 0 auto; padding: 0 20px; }

header.site { border-bottom: 1px solid var(--line); }
header.site .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 64px; gap: 16px; flex-wrap: wrap;
}
.brand { font-weight: 700; letter-spacing: 0.02em; color: var(--text); text-decoration: none; font-size: 20px; }
.brand span { color: var(--accent); }
nav.site a { color: var(--muted); text-decoration: none; margin-left: 20px; font-size: 15px; }
nav.site a:hover, nav.site a[aria-current="page"] { color: var(--text); }

main { padding: 48px 0 72px; }
h1 { font-size: clamp(32px, 6vw, 46px); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 12px; }
h2 { font-size: 22px; line-height: 1.3; margin: 44px 0 10px; }
p, li { color: var(--muted); max-width: 65ch; }
p strong, li strong { color: var(--text); }
.lede { font-size: 19px; color: var(--text); max-width: 55ch; }
.updated { color: var(--muted); font-size: 15px; margin: 0 0 28px; }
ul { padding-left: 22px; }
li { margin: 6px 0; }

.btn {
  display: inline-block; background: var(--accent); color: var(--accent-ink);
  font-weight: 700; text-decoration: none; padding: 13px 22px;
  border-radius: var(--radius); margin-top: 8px; white-space: nowrap;
  transition: transform 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }

.panel {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px 22px; margin: 20px 0;
}
.panel p { margin: 6px 0; }

details {
  border-top: 1px solid var(--line); padding: 14px 0;
}
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; color: var(--text); font-weight: 600; }
details p { margin: 10px 0 2px; }

table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; color: var(--muted); }
th { color: var(--text); font-weight: 600; border-bottom: 1px solid var(--line); }
td:first-child { color: var(--text); }

footer.site { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 15px; color: var(--muted); }
footer.site a { color: var(--muted); margin-right: 18px; }

@media (max-width: 520px) {
  body { font-size: 16px; }
  main { padding-top: 32px; }
  nav.site a { margin-left: 0; margin-right: 16px; }
  table, thead, tbody, tr, th, td { display: block; }
  thead { display: none; }
  tr { border-bottom: 1px solid var(--line); padding: 10px 0; }
  td { padding: 2px 0; }
}
