/* Public legal documents: branded, readable, printable and independent of JS. */
:root {
  color-scheme: dark;
  --legal-night: #07141e;
  --legal-surface: #102631;
  --legal-line: #3d5662;
  --legal-text: #f7f3e9;
  --legal-muted: #c5d3d8;
  --legal-gold: #f0cf91;
  --legal-gold-strong: #ffdda0;
  --legal-focus: #f7d8a0;
  --legal-radius-sm: 12px;
  --legal-radius-lg: 22px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--legal-night);
  color: var(--legal-text);
}
* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at 85% -10%, rgb(42 87 96 / .38), transparent 32rem), linear-gradient(180deg, #081722 0%, var(--legal-night) 42rem);
}
a { color: var(--legal-gold); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--legal-gold-strong); }
a:focus-visible { outline: 3px solid var(--legal-focus); outline-offset: 4px; border-radius: 4px; }

.legal-shell { width: min(100% - 32px, 1080px); margin-inline: auto; }
.legal-site-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 24px 48px;
  padding: 20px 0;
  border-bottom: 1px solid rgb(183 207 214 / .24);
}
.legal-brand { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; color: var(--legal-text); text-decoration: none; }
.legal-brand img { width: 48px; height: 48px; border-radius: 13px; box-shadow: 0 10px 28px rgb(0 0 0 / .28); }
.legal-brand span { display: grid; gap: 2px; }
.legal-brand strong { font-family: Georgia, "Times New Roman", serif; font-size: 1rem; letter-spacing: .09em; }
.legal-brand small { color: var(--legal-gold); font-size: .68rem; letter-spacing: .15em; text-transform: uppercase; }
.legal-site-header nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 8px; }
.legal-site-header nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 11px;
  border-radius: 999px;
  color: var(--legal-muted);
  font-size: .875rem;
  font-weight: 650;
  text-decoration: none;
}
.legal-site-header nav a:hover { background: rgb(255 255 255 / .06); color: var(--legal-text); }
.legal-site-header nav a[aria-current="page"] { background: var(--legal-gold); color: #10212a; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .32); }

.legal {
  width: min(100%, 72ch);
  margin: 0 auto;
  padding: 52px 0 64px;
  color: var(--legal-text);
  font-size: 1rem;
  line-height: 1.75;
  overflow-wrap: anywhere;
}
.legal > p:first-child { margin: 0 0 24px; font-size: .9rem; }
.legal p, .legal li { color: var(--legal-muted); }
.legal h1 {
  max-width: 18ch;
  margin: 0 0 10px;
  color: #fffaf0;
  font-size: clamp(2.2rem, 7vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: -.045em;
}
.legal h2 {
  margin: 2.8rem 0 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgb(183 207 214 / .2);
  color: var(--legal-text);
  font-size: clamp(1.25rem, 3vw, 1.55rem);
  line-height: 1.3;
  letter-spacing: -.02em;
}
.legal ul { padding-left: 1.35rem; }
.legal li + li { margin-top: .7rem; }
.legal strong { color: var(--legal-text); }
.legal .version { margin-top: 0; color: var(--legal-gold); font-size: .875rem; }
.legal section, .legal h2 { scroll-margin-top: 24px; }
.legal section {
  margin-top: 22px;
  padding: 1px 24px 24px;
  border: 1px solid rgb(183 207 214 / .18);
  border-radius: var(--legal-radius-lg);
  background: linear-gradient(145deg, rgb(20 47 59 / .82), rgb(12 30 40 / .82));
  box-shadow: 0 18px 50px rgb(0 0 0 / .12);
}
.legal section h2 { margin-top: 1.25rem; border-top: 0; padding-top: 0; }
.legal .notice { padding: 20px; border: 1px solid #8d774c; border-radius: var(--legal-radius-sm); background: #192b34; }
.legal-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 8px;
  padding: 14px;
  border: 1px solid rgb(183 207 214 / .2);
  border-radius: var(--legal-radius-sm);
  background: rgb(16 38 49 / .7);
}
.legal-toc a, .legal .contact-actions a { display: inline-flex; align-items: center; min-height: 44px; }
.legal-toc a {
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--legal-muted);
  font-size: .875rem;
  font-weight: 650;
  text-decoration: none;
}
.legal-toc a:hover { background: rgb(255 255 255 / .06); color: var(--legal-text); }
.legal .contact-actions { display: flex; flex-wrap: wrap; gap: 10px 14px; margin-block: 18px; }
.legal .contact-actions a {
  padding: 10px 14px;
  border: 1px solid #8d774c;
  border-radius: var(--legal-radius-sm);
  color: var(--legal-gold-strong);
  font-weight: 700;
  text-decoration: none;
}
.legal .contact-actions a:hover { background: rgb(240 207 145 / .1); }
.legal footer, .legal-shell > footer {
  margin: 0 auto 32px;
  padding: 24px 0;
  border-top: 1px solid rgb(183 207 214 / .22);
  color: var(--legal-muted);
  text-align: center;
}
.legal footer { margin-top: 42px; }
.legal footer a, .legal-shell > footer a { display: inline-flex; align-items: center; min-height: 44px; }

.skip {
  position: fixed;
  z-index: 20;
  top: 8px;
  left: 8px;
  translate: 0 -160%;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--legal-gold);
  color: #10212a;
  font-weight: 800;
}
.skip:focus { translate: 0; }

@media (max-width: 760px) {
  .legal-shell { width: min(100% - 28px, 1080px); }
  .legal-site-header { grid-template-columns: 1fr; gap: 12px; }
  .legal-site-header nav { justify-content: flex-start; margin-inline: -5px; }
  .legal-site-header nav a { padding-inline: 9px; }
  .legal { padding: 38px 0 52px; }
}
@media (max-width: 480px) {
  .legal-shell { width: min(100% - 24px, 1080px); }
  .legal-brand strong { font-size: .95rem; }
  .legal-site-header nav { gap: 2px; }
  .legal-site-header nav a { font-size: .8125rem; }
  .legal h1 { font-size: clamp(2.1rem, 12vw, 3.2rem); }
  .legal section { margin-inline: -4px; padding-inline: 18px; border-radius: 18px; }
  .legal .contact-actions { align-items: stretch; flex-direction: column; }
  .legal .contact-actions a { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
@media print {
  :root { color-scheme: light; background: #fff; color: #000; }
  body { background: #fff; }
  .legal-shell { width: 100%; }
  .legal-site-header, .skip, .legal-toc, .legal .contact-actions, .legal footer, .legal-shell > footer { display: none; }
  .legal { width: 100%; max-width: none; padding: 0; font-size: 11pt; }
  .legal p, .legal li, .legal a, .legal h1, .legal h2, .legal strong { color: #000; }
  .legal section, .legal .notice { break-inside: avoid; background: #fff; border-color: #777; box-shadow: none; }
  .legal h2 { break-after: avoid; }
}
