/* MobGe legal pages — shares branding with mobge.net (Montserrat, MobGe orange) */

:root {
  --brand: #ed8544;          /* mobge.net primary orange — decorative only */
  --brand-ink: #b4501a;      /* darker orange for text/links (WCAG AA on white) */
  --ink: #212529;            /* mobge.net body text */
  --ink-muted: #5b6168;
  --line: #e9e4df;
  --paper: #ffffff;
  --paper-warm: #fbf7f3;
  --footer: #212529;
  --footer-ink: #d6d8da;

  --content: 720px;
  --gutter: 16px;
  --radius: 12px;
  font-size: 16px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--brand-ink); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

.skip {
  position: absolute; left: -999px; top: 8px;
  background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 20;
}
.skip:focus { left: 8px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 68px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { height: 38px; width: auto; display: block; }
.brand span {
  font-weight: 700; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-muted); padding-left: 12px; border-left: 1px solid var(--line);
}
.site-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.site-nav a {
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.9rem;
  padding: 8px 12px; border-radius: 8px;
}
.site-nav a:hover { background: var(--paper-warm); }
.site-nav a[aria-current="page"] { color: var(--brand-ink); font-weight: 700; }

/* ---------- Hero ---------- */

.hero {
  background: var(--paper-warm);
  border-bottom: 1px solid var(--line);
  padding: 56px 0 44px;
}
.eyebrow {
  margin: 0 0 8px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--brand-ink);
}
.hero h1 {
  margin: 0; font-weight: 800; font-size: clamp(2rem, 5vw, 3rem); line-height: 1.15;
  letter-spacing: -0.01em;
}
.hero h1::after {
  content: ""; display: block; width: 56px; height: 4px; margin-top: 18px;
  background: var(--brand); border-radius: 2px;
}
.hero .lede { max-width: var(--content); margin: 18px 0 0; color: var(--ink-muted); font-size: 1.05rem; }
.meta { margin: 16px 0 0; font-size: 0.875rem; color: var(--ink-muted); }
.meta strong { color: var(--ink); font-weight: 600; }

/* ---------- Document layout ---------- */

.doc { padding: 48px 0 72px; }
.doc .wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }

@media (min-width: 960px) {
  .doc .wrap { grid-template-columns: 240px minmax(0, var(--content)); gap: 64px; }
  .toc { position: sticky; top: 96px; align-self: start; max-height: calc(100vh - 120px); overflow: auto; }
  .toc summary { pointer-events: none; }
  .toc summary::after { display: none; }
}

.toc {
  font-size: 0.875rem;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px;
}
@media (min-width: 960px) { .toc { border: 0; padding: 0; } }
.toc summary {
  cursor: pointer; list-style: none; font-weight: 700; font-size: 0.75rem;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted);
  display: flex; justify-content: space-between; align-items: center;
}
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: "+"; font-size: 1.1rem; font-weight: 500; }
.toc[open] summary::after { content: "–"; }
.toc ol { list-style: none; margin: 12px 0 0; padding: 0; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a {
  display: block; padding: 6px 0 6px 12px; color: var(--ink-muted); text-decoration: none;
  border-left: 2px solid var(--line); line-height: 1.4;
}
.toc a::before { content: counter(toc) ". "; }
.toc a:hover { color: var(--brand-ink); border-left-color: var(--brand); }

.prose { max-width: var(--content); min-width: 0; }
.prose > :first-child { margin-top: 0; }
.prose h2 {
  font-weight: 800; font-size: 1.4rem; line-height: 1.3; margin: 48px 0 12px;
  padding-top: 4px;
}
.prose h3 { font-weight: 700; font-size: 1.05rem; margin: 28px 0 8px; }
.prose p, .prose ul, .prose ol { margin: 0 0 16px; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li { margin-bottom: 6px; }
.prose li::marker { color: var(--brand); }
.prose strong { font-weight: 700; }

.callout {
  background: var(--paper-warm); border: 1px solid var(--line); border-left: 4px solid var(--brand);
  border-radius: var(--radius); padding: 16px 20px; margin: 0 0 24px;
}
.callout p:last-child { margin-bottom: 0; }

.table-wrap { overflow-x: auto; margin: 0 0 20px; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; line-height: 1.5; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: 0; }
th { background: var(--paper-warm); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-muted); }
td:first-child { font-weight: 600; white-space: nowrap; }

address { font-style: normal; }

/* ---------- Landing cards ---------- */

.cards { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); margin: 0 0 40px; }
@media (min-width: 720px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.card {
  display: flex; flex-direction: column; gap: 8px;
  padding: 28px; border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; color: var(--ink); background: var(--paper);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.card:hover { color: var(--ink); border-color: var(--brand); box-shadow: 0 8px 24px rgba(237, 133, 68, 0.14); transform: translateY(-2px); }
.card h2 { margin: 0; font-size: 1.25rem; font-weight: 800; }
.card p { margin: 0; color: var(--ink-muted); font-size: 0.95rem; }
.card .go { margin-top: auto; padding-top: 12px; font-weight: 700; font-size: 0.9rem; color: var(--brand-ink); }

.landing { padding: 48px 0 72px; }
.landing .inner { max-width: 880px; }
.company h2 { font-size: 1.1rem; font-weight: 800; margin: 0 0 8px; }
.company p { margin: 0 0 6px; color: var(--ink-muted); }

/* ---------- Footer ---------- */

.site-footer { background: var(--footer); color: var(--footer-ink); padding: 40px 0; font-size: 0.875rem; }
.site-footer .wrap { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .site-footer .wrap { grid-template-columns: minmax(0, 1fr) auto; align-items: start; } }
.site-footer img { height: 32px; width: auto; margin-bottom: 14px; display: block; }
.site-footer address { line-height: 1.6; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--brand); }
.site-footer nav { display: flex; flex-direction: column; gap: 6px; }
.site-footer .copy { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, 0.12); padding-top: 18px; margin: 0; color: #9aa0a6; }

/* ---------- Small screens ---------- */

@media (max-width: 560px) {
  .brand span { display: none; }
  .brand img { height: 32px; }
  .site-nav a { padding: 8px; font-size: 0.85rem; }
  .hero { padding: 40px 0 32px; }
  .doc, .landing { padding-top: 32px; }
  td:first-child { white-space: normal; }
}

/* ---------- Print ---------- */

@media print {
  .site-header, .toc, .skip, .site-footer nav { display: none !important; }
  .hero { background: none; padding: 0 0 16px; }
  .doc .wrap { display: block; }
  a { color: inherit; }
  .prose a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.8em; color: #555; }
}
