/* Shared styling for the legal pages (terms / privacy / refund).
   Kept separate from index.html: these are plain documents, they do not need
   the app shell, and they must stay readable if the app CSS ever changes. */

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

:root {
  --bg: #111111;
  --surface: #1a1a1a;
  --border: #2e2e2e;
  --border-light: #383838;
  --text: #e6e6e6;
  --text-dim: #9a9a9a;
  --accent: #c0c0c0;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text-dim);
  line-height: 1.7;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

.legal-header {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
}
.legal-header a.brand {
  display: flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}
.legal-header img { height: 18px; width: auto; }

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 24px 96px;
}

h1 {
  font-size: 30px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.updated {
  font-size: 13px;
  color: #666;
  margin-bottom: 40px;
}

h2 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin: 40px 0 12px;
}
h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin: 24px 0 8px;
}

p { margin-bottom: 14px; }
ul, ol { margin: 0 0 14px 22px; }
li { margin-bottom: 7px; }

a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: #fff; }

strong { color: var(--text); font-weight: 600; }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 22px;
  font-size: 14px;
}
th, td {
  text-align: left;
  padding: 10px 12px;
  border: 1px solid var(--border);
  vertical-align: top;
}
th { background: var(--surface); color: var(--text); font-weight: 600; }

/* Placeholders the site owner still has to fill in before going live.
   Deliberately loud — these must not ship unnoticed. */
.todo {
  background: #3a2a00;
  color: #ffcf6b;
  border: 1px dashed #7a5c14;
  border-radius: 4px;
  padding: 1px 7px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.note {
  border-left: 2px solid var(--border-light);
  padding: 12px 0 12px 16px;
  margin: 22px 0;
  font-size: 14px;
  color: #8a8a8a;
}

footer {
  border-top: 1px solid var(--border);
  margin-top: 64px;
  padding-top: 24px;
  font-size: 13px;
  color: #666;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

@media (max-width: 600px) {
  main { padding: 36px 18px 72px; }
  h1 { font-size: 25px; }
  table, thead, tbody, th, td, tr { display: block; }
  th { display: none; }
  td { border: none; border-bottom: 1px solid var(--border); padding: 8px 0; }
}
