/* Ronda STARS Online — legal pages (CONPLY)
   One stylesheet shared by every policy page. Self-contained: no fonts
   or assets are fetched from anywhere. */

:root {
  --navy: #0e1a3a;
  --navy-2: #16264f;
  --gold: #e0a653;
  --gold-2: #f3cd86;
  --ink: #1f2937;
  --muted: #5b6577;
  --line: #e4e7ee;
  --bg: #f5f6fa;
  --card: #ffffff;
  --note: #fff8e6;
  --note-line: #f0d9a3;
  --ok: #e8f7ee;
  --ok-line: #b7e3c7;
  --radius: 14px;
  --max: 900px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
}
a { color: #a3671c; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--navy); }

/* ── Header band ─────────────────────────────────────────────── */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 60%, #1d3470 100%);
  color: #fff;
  padding: 40px 20px 32px;
  border-bottom: 4px solid var(--gold);
}
.hero .wrap { max-width: var(--max); margin: 0 auto; }
.brand {
  display: flex; align-items: center; gap: 14px;
  font-weight: 700; letter-spacing: .3px; opacity: .95;
}
.brand .logo {
  width: 44px; height: 44px; border-radius: 12px;
  background: radial-gradient(circle at 35% 30%, var(--gold-2), var(--gold) 55%, #9a5e05 100%);
  display: grid; place-items: center; color: var(--navy); font-weight: 900; font-size: 20px;
  box-shadow: 0 6px 16px rgba(0,0,0,.35);
}
.brand small { display: block; font-weight: 500; opacity: .8; font-size: 13px; }
.hero h1 { margin: 26px 0 8px; font-size: clamp(28px, 4.6vw, 40px); line-height: 1.15; }
.hero .meta { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 14px; opacity: .9; }
.hero .meta span b { color: var(--gold-2); font-weight: 600; }

/* ── Document nav ────────────────────────────────────────────── */
.docnav { background: #fff; border-bottom: 1px solid var(--line); }
.docnav .wrap {
  max-width: var(--max); margin: 0 auto; padding: 0 20px;
  display: flex; gap: 4px; overflow-x: auto;
}
.docnav a {
  padding: 14px 14px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: 14px;
  border-bottom: 3px solid transparent; white-space: nowrap;
}
.docnav a:hover { color: var(--navy); }
.docnav a.active { color: var(--navy); border-bottom-color: var(--gold); }

/* ── Main ────────────────────────────────────────────────────── */
main { max-width: var(--max); margin: 0 auto; padding: 28px 20px 60px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 26px; margin: 0 0 22px; box-shadow: 0 2px 10px rgba(14,26,58,.05);
}
.lead { font-size: 17px; color: var(--ink); }
.toc h2 { margin-top: 0; font-size: 15px; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); }
.toc ol { margin: 0; padding-left: 22px; columns: 2; column-gap: 32px; }
.toc li { break-inside: avoid; margin: 4px 0; }
.toc a { text-decoration: none; color: var(--navy); font-weight: 600; }
.toc a:hover { text-decoration: underline; }

section { margin: 34px 0; scroll-margin-top: 18px; }
section h2 {
  font-size: 22px; margin: 0 0 12px; padding-bottom: 8px;
  border-bottom: 2px solid var(--gold-2); color: var(--navy);
}
section h3 { font-size: 17px; margin: 22px 0 8px; color: var(--navy); }
p { margin: 10px 0; }
ul, ol { padding-left: 24px; }
li { margin: 6px 0; }
li::marker { color: var(--gold); }

/* ── Tables ──────────────────────────────────────────────────── */
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; margin: 14px 0; }
table { border-collapse: collapse; width: 100%; min-width: 620px; font-size: 15px; background: #fff; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
th { background: #f0f2f8; color: var(--navy); font-weight: 700; font-size: 13.5px; letter-spacing: .3px; text-transform: uppercase; }
tr:last-child td { border-bottom: 0; }
td strong { color: var(--navy); }

/* ── Callouts ────────────────────────────────────────────────── */
.note, .ok {
  border-radius: 12px; padding: 14px 18px; margin: 16px 0; border: 1px solid;
}
.note { background: var(--note); border-color: var(--note-line); }
.ok { background: var(--ok); border-color: var(--ok-line); }
.note b, .ok b { color: var(--navy); }
.tag {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase;
  padding: 2px 9px; border-radius: 999px; background: var(--gold-2); color: #5a3a00; vertical-align: middle;
}
.todo {
  background: #fff3cd; border: 1px dashed #d9a400; color: #5a3a00; padding: 1px 6px; border-radius: 6px;
  font-weight: 700;
}

/* ── Steps (deletion page) ───────────────────────────────────── */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 14px 0; }
.steps li {
  position: relative; padding: 12px 14px 12px 62px; margin: 10px 0;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
}
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 14px; top: 12px; width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: var(--navy);
  font-weight: 900; display: grid; place-items: center; box-shadow: 0 3px 8px rgba(0,0,0,.18);
}

/* ── Contact block ───────────────────────────────────────────── */
.contact {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px;
}
.contact .item { background: #f7f8fc; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.contact .item b { display: block; color: var(--navy); margin-bottom: 4px; font-size: 13px; text-transform: uppercase; letter-spacing: .4px; }

/* ── Index page cards ────────────────────────────────────────── */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.doc {
  display: block; text-decoration: none; color: var(--ink);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
  box-shadow: 0 2px 10px rgba(14,26,58,.05); transition: transform .15s, box-shadow .15s, border-color .15s;
}
.doc:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(14,26,58,.10); border-color: var(--gold-2); color: var(--ink); }
.doc .icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 22px;
  background: linear-gradient(180deg, #eef1fa, #e1e6f5); color: var(--navy); margin-bottom: 12px;
}
.doc h3 { margin: 0 0 6px; color: var(--navy); font-size: 18px; }
.doc p { margin: 0; color: var(--muted); font-size: 14.5px; }
.doc .go { display: inline-block; margin-top: 12px; font-weight: 700; color: #a3671c; }

/* ── Footer ──────────────────────────────────────────────────── */
footer { border-top: 1px solid var(--line); background: #fff; }
footer .wrap {
  max-width: var(--max); margin: 0 auto; padding: 22px 20px;
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 14px; color: var(--muted);
}
footer a { color: var(--muted); }

/* ── Small screens ───────────────────────────────────────────── */
@media (max-width: 640px) {
  .card { padding: 18px; }
  .toc ol { columns: 1; }
  .hero { padding: 28px 16px 24px; }
  main { padding: 20px 16px 48px; }
}

/* ── Print ───────────────────────────────────────────────────── */
@media print {
  .docnav, footer .print-hide { display: none; }
  body { background: #fff; }
  .hero { background: var(--navy) !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .card { box-shadow: none; }
  a { color: inherit; }
}
