/* legal.css — shared shell for the three policy pages (privacy / terms / refund).
   Same design tokens as about.html, factored out so the pages don't each carry
   200 lines of duplicated inline CSS. Only these three pages load this file. */

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
:root{
  --navy:#0B2545; --navy-3:#08182f; --gold:#C9A227; --gold-2:#e3bd45; --gold-3:#f0d784;
  --text:#EAF0F8; --text-soft:rgba(234,240,248,.62); --text-dim:rgba(234,240,248,.40);
  --glass:rgba(255,255,255,.045); --glass-border:rgba(201,162,39,.22);
  --serif:'Playfair Display',Georgia,serif;
  --sans:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
}
body{
  font-family:var(--sans); line-height:1.65; color:var(--text);
  background:radial-gradient(1200px 700px at 70% -10%,#123564 0%,transparent 55%),var(--navy-3);
  -webkit-font-smoothing:antialiased; min-height:100vh;
}
a{color:var(--gold-3)}

.topbar{
  position:sticky; top:0; z-index:50; height:68px; display:flex; align-items:center;
  justify-content:space-between; padding:0 clamp(20px,4vw,48px);
  background:rgba(8,24,47,.85); backdrop-filter:blur(16px);
  border-bottom:1px solid rgba(201,162,39,.14);
}
.brand{display:flex; align-items:center; gap:12px; text-decoration:none}
.mark{
  width:40px;height:40px;border-radius:10px;
  background:linear-gradient(145deg,var(--gold-2),var(--gold));
  color:var(--navy);font-weight:800;font-family:var(--serif);
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 4px 14px rgba(201,162,39,.3);
}
.brand-name{font-size:.82rem;color:var(--text-soft);line-height:1.25}
.brand:hover .brand-name{color:var(--gold-3)}
.topbar nav a{color:var(--text-soft);font-size:.82rem;text-decoration:none;margin-left:22px;font-weight:500}
.topbar nav a:hover{color:var(--gold-3)}
.cta{background:var(--gold);color:var(--navy)!important;padding:9px 18px;border-radius:40px;font-weight:700}

main{max-width:760px;margin:0 auto;padding:clamp(36px,6vw,64px) clamp(20px,5vw,32px) 90px}
h1{font-family:var(--serif);font-size:clamp(1.8rem,4.4vw,2.5rem);line-height:1.15;margin-bottom:8px}
.tagline{color:var(--gold-3);font-size:.98rem;margin-bottom:10px}
.updated{color:var(--text-dim);font-size:.84rem;margin-bottom:34px}
h2{font-family:var(--serif);font-size:1.28rem;margin:40px 0 12px;color:var(--gold-3)}
h3{font-size:1rem;margin:24px 0 8px;color:var(--text)}
p{margin-bottom:15px;color:rgba(234,240,248,.86)}
ul,ol{margin:0 0 16px 22px;color:rgba(234,240,248,.86)}
li{margin-bottom:8px}
strong{color:#fff}

.card{background:var(--glass);border:1px solid var(--glass-border);border-radius:14px;padding:22px 24px;margin:24px 0}
.card p:last-child{margin-bottom:0}

/* Summary box at the top of each policy — the version a student actually reads. */
.tldr{
  background:rgba(201,162,39,.09); border:1px solid rgba(201,162,39,.3);
  border-radius:14px; padding:20px 24px; margin:0 0 34px;
}
.tldr h2{margin:0 0 10px;font-size:1.05rem;font-family:var(--sans);font-weight:700;color:var(--gold-3)}
.tldr ul{margin-bottom:0}
.tldr li{color:rgba(234,240,248,.92)}

table{width:100%;border-collapse:collapse;margin:0 0 20px;font-size:.9rem}
th,td{text-align:left;padding:10px 12px;border-bottom:1px solid rgba(201,162,39,.16);vertical-align:top}
th{color:var(--gold-3);font-weight:600;font-size:.82rem;text-transform:uppercase;letter-spacing:.4px}
td{color:rgba(234,240,248,.86)}

/* ⚠ Unfilled business details. Deliberately loud: these must not reach a live
   page. tools/tests/legal-pages.test.js fails the build while any remain. */
.fill{
  background:#FFE9A8; color:#5A4100; font-weight:700; padding:1px 7px;
  border-radius:4px; font-size:.86em; white-space:nowrap;
}

.muted{color:var(--text-dim);font-size:.85rem}
.contact-block{font-size:.92rem;line-height:1.9}

footer{
  border-top:1px solid rgba(201,162,39,.14);padding:34px 20px;text-align:center;
  color:var(--text-dim);font-size:.82rem;
}
footer .f-brand{font-family:var(--serif);color:var(--text-soft);font-size:1rem;margin-bottom:8px}
footer a{color:var(--gold-3)}

/* Shared compliance strip, injected into the footer of every page on the site.
   The Kalixen operating notice is a PayMongo merchant requirement, not decoration. */
.legal-line{margin-top:12px;line-height:1.9;font-size:.8rem;color:var(--text-dim)}
.legal-line .op{display:block;margin-top:4px;opacity:.85}
