/* Shared styles for secondary pages (404, privacy, terms, support). Tokens mirror index.html. */
:root {
  --bg: #fff; --bg-alt: #f5f5f7; --text: #1d1d1f; --text-2: #6e6e73; --hairline: #d2d2d7; --gain: #1a7f37;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #000; --bg-alt: #161617; --text: #f5f5f7; --text-2: #a1a1a6; --hairline: #424245; --gain: #30d158; }
}
* { box-sizing: border-box; }
html { -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.53 var(--sans); letter-spacing: -0.012em; -webkit-font-smoothing: antialiased; }
a { color: var(--gain); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 720px; margin: 0 auto; padding: 0 max(22px, env(safe-area-inset-left)) 0 max(22px, env(safe-area-inset-right)); }

header {
  position: sticky; top: 0; z-index: 10; padding-top: env(safe-area-inset-top);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--hairline) 70%, transparent);
}
header .wrap { height: 52px; display: flex; align-items: center; }
.logo { font-weight: 600; font-size: 19px; letter-spacing: -0.03em; color: var(--text); text-decoration: none; }

main { padding: 72px 0 96px; }
h1 { font-size: clamp(36px, 6vw, 48px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.08; margin: 0 0 12px; text-wrap: balance; }
h2 { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.17; margin: 48px 0 10px; }
.meta { color: var(--text-2); font-size: 15px; margin: 0 0 40px; }
p, li { color: var(--text-2); }
li + li { margin-top: 6px; }
strong { color: var(--text); font-weight: 600; }

.btn {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 24px; border-radius: 980px;
  background: var(--text); color: var(--bg); font-weight: 500; text-decoration: none;
  touch-action: manipulation; user-select: none; transition: transform 120ms var(--ease-out), opacity 150ms ease;
}
.btn:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .btn:hover { opacity: .86; } footer a:hover { text-decoration: underline; } }

footer { background: var(--bg-alt); border-top: 1px solid var(--hairline); padding: 28px 0 calc(28px + env(safe-area-inset-bottom)); font-size: 12px; color: var(--text-2); letter-spacing: 0; }
footer .wrap { display: flex; gap: 12px 24px; flex-wrap: wrap; justify-content: space-between; }
footer a { color: var(--text); text-decoration: none; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 30; background: var(--text); color: var(--bg); padding: 12px 18px; border-radius: 980px; font-weight: 500; text-decoration: none; }
.skip:focus { top: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 12px 0; }
th, td { text-align: left; padding: 12px 8px 12px 0; border-bottom: 1px solid var(--hairline); vertical-align: top; }
th { color: var(--text); font-weight: 600; }
td { color: var(--text-2); }
@media (prefers-reduced-motion: reduce) { .btn:active { transform: none; } }
@media (prefers-reduced-transparency: reduce) { header { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; } }
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 260ms; animation-timing-function: var(--ease-out); }
@media (prefers-reduced-motion: reduce) { ::view-transition-old(root), ::view-transition-new(root) { animation: none; } }
