/* RAN ONLINE: FOREVER - the stand-alone legal pages (REQ-121, 2026-10-17: Google Play needs a privacy policy and an
   account-deletion page): ranforever.com/privacy and /delete-account. Same tokens as css/site.css. No inline styles (CSP). */
:root {
  --bg: #0b0d12; --card: #161b25; --card2: #1b2230; --line: #2a3140; --text: #e8ebf1; --muted: #939bab;
  --gold: #e8b64a; --gold2: #ffd67a; --red: #c8323b; --ok: #3fb950; --bad: #f25a5a;
}
* { box-sizing: border-box; }
body {
  margin: 0; min-height: 100vh; color: var(--text); background: var(--bg);
  font: 16px/1.6 "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
}
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold2); text-decoration: underline; }
.hidden { display: none !important; }
.top { border-bottom: 1px solid var(--line); background: #0e1117; }
.top__in { max-width: 760px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.logo { display: inline-flex; flex-direction: column; line-height: 1; color: var(--text); font-weight: 800; letter-spacing: 1.5px; }
.logo:hover { text-decoration: none; }
.logo__ran { font-size: 11px; color: var(--muted); letter-spacing: 3px; }
.logo__fv { font-size: 20px; color: var(--gold); }
.top nav { margin-left: auto; display: flex; gap: 14px; font-size: 14px; flex-wrap: wrap; }
.top .lang { margin-left: 4px; }   /* REQ-155b: the EN | TH switch after the nav (js/i18n-page.js, css/i18n-page.css) */
.wrap { max-width: 760px; margin: 0 auto; padding: 24px 16px 48px; }
h1 { font-size: 28px; line-height: 1.2; margin: 8px 0 4px; }
h2 { font-size: 19px; margin: 28px 0 8px; color: var(--gold2); }
h3 { font-size: 16px; margin: 18px 0 6px; }
p, li { color: #d3d8e2; }
ul, ol { padding-left: 22px; }
li { margin: 4px 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.lead { font-size: 17px; color: var(--text); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; margin: 18px 0; }
.card--gold { border-color: var(--gold); }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cols .card { margin: 0; }
.cols h3 { margin-top: 0; }
.cols ul { margin: 6px 0 0; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; margin: 8px 0; }
.tbl th, .tbl td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.tbl th { color: var(--muted); font-weight: 600; }
.tbl td:first-child { color: var(--text); font-weight: 600; width: 30%; }
form label { display: block; margin: 12px 0 0; font-weight: 600; font-size: 14px; }
form input[type=text], form input[type=password], form textarea {
  display: block; width: 100%; margin-top: 4px; padding: 10px 12px; font: inherit; color: var(--text);
  background: #0e1219; border: 1px solid var(--line); border-radius: 8px;
}
form textarea { min-height: 84px; resize: vertical; }
form input:focus, form textarea:focus { outline: none; border-color: var(--gold); }
.check { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 400 !important; color: #d3d8e2; }
.check input { margin-top: 5px; width: 18px; height: 18px; flex: none; accent-color: var(--gold); }
.btn {
  display: inline-block; margin-top: 16px; padding: 11px 20px; border: 0; border-radius: 8px; cursor: pointer;
  font: inherit; font-weight: 700; color: #1a1204; background: linear-gradient(180deg, #f2c35e, #d49a2b);
}
.btn:hover { background: linear-gradient(180deg, #ffd67a, #e8b64a); text-decoration: none; color: #1a1204; }
.btn:disabled { opacity: .5; cursor: default; }
.btn--danger { color: #fff; background: linear-gradient(180deg, #d9434c, #a8262e); }
.btn--danger:hover { color: #fff; background: linear-gradient(180deg, #e85a62, #b92e36); }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; font-size: 14px; color: var(--gold); cursor: pointer; }
.err { color: var(--bad); min-height: 1.4em; margin: 10px 0 0; font-size: 14px; }
.ok { color: var(--ok); font-weight: 700; }
.ts { margin-top: 12px; }
.foot { border-top: 1px solid var(--line); margin-top: 32px; padding-top: 16px; color: var(--muted); font-size: 13px; }
@media (max-width: 600px) {
  .cols { grid-template-columns: 1fr; }
  h1 { font-size: 24px; }
  .top nav { margin-left: 0; width: 100%; order: 2; }
  .top .lang { margin-left: auto; }   /* REQ-155b: phone = logo ... EN | TH on the first row, the nav below */
  .tbl td:first-child { width: 38%; }
}
