/* Shared styling for the static legal pages. These are deliberately plain
   HTML rather than SPA routes: they must render without JavaScript, stay
   indexable, and remain readable if the application build ever breaks. */
:root {
  color-scheme: dark;
  --ink: #15100f;
  --panel: #1b1412;
  --paper: #f8f1ee;
  --muted: #e8c4bc;
  --signal: #ff4d4d;
  --hairline: rgba(255, 227, 221, 0.14);
}

* { box-sizing: border-box; }

html { scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: "Archivo", ui-sans-serif, system-ui, -apple-system, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 46rem;
  margin: 0 auto;
  padding: 3rem 1.25rem 5rem;
}

header.bar {
  border-bottom: 1px solid var(--hairline);
  background: var(--panel);
}

header.bar .inner {
  max-width: 46rem;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

header.bar a { color: var(--paper); text-decoration: none; font-weight: 600; }
header.bar .mark { width: 10px; height: 10px; border-radius: 50%; background: var(--signal); }

h1 { font-size: 2rem; line-height: 1.15; margin: 0 0 0.5rem; letter-spacing: -0.02em; }
h2 { font-size: 1.15rem; margin: 2.5rem 0 0.75rem; letter-spacing: -0.01em; }
h3 { font-size: 1rem; margin: 1.75rem 0 0.5rem; }

p, li { color: rgba(248, 241, 238, 0.86); }
li { margin-bottom: 0.4rem; }

.updated {
  font-size: 0.8rem;
  color: rgba(232, 196, 188, 0.6);
  margin-bottom: 2rem;
}

.notice {
  border: 1px solid rgba(255, 77, 77, 0.4);
  background: rgba(255, 77, 77, 0.07);
  border-radius: 8px;
  padding: 1rem 1.15rem;
  margin: 2rem 0;
  font-size: 0.92rem;
}

a { color: var(--signal); }

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 10;
  transform: translateY(-200%);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  padding: 0.55rem 0.85rem;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus { transform: none; outline: 2px solid var(--signal); outline-offset: 3px; }

footer.legal {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--hairline);
  font-size: 0.82rem;
  color: rgba(232, 196, 188, 0.55);
}

footer.legal a { color: rgba(232, 196, 188, 0.8); }

table { border-collapse: collapse; width: 100%; margin: 1rem 0; font-size: 0.9rem; }
th, td { border: 1px solid var(--hairline); padding: 0.55rem 0.7rem; text-align: left; vertical-align: top; }
th { color: var(--muted); font-weight: 600; }

@media (max-width: 640px) {
  h1 { font-size: 1.6rem; }
  .wrap { padding: 2rem 1rem 3.5rem; }
  table { display: block; max-width: 100%; overflow-x: auto; }
}
