:root {
  color-scheme: dark;
  --legal-bg: #061127;
  --legal-panel: #0d1e3a;
  --legal-panel-strong: #132846;
  --legal-line: #2b4b6d;
  --legal-text: #f4f8ff;
  --legal-muted: #a8bbd4;
  --legal-blue: #21b6ff;
  --legal-green: #3dd6ae;
  --legal-amber: #ffc85c;
}

* { box-sizing: border-box; }

html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
  overflow-x: clip;
  background:
    radial-gradient(circle at 15% 0%, rgba(20, 103, 213, .2), transparent 34rem),
    linear-gradient(180deg, #071630 0%, var(--legal-bg) 45rem);
  color: var(--legal-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

a { color: #73d4ff; }
a:hover { color: #bdeeff; }

img,
svg { max-width: 100%; }

.skip-link {
  position: fixed;
  z-index: 10;
  top: .75rem;
  left: .75rem;
  transform: translateY(-180%);
  padding: .65rem .9rem;
  border-radius: .65rem;
  background: white;
  color: #071630;
  font-weight: 800;
}

.skip-link:focus { transform: translateY(0); }

.legal-header {
  position: sticky;
  z-index: 5;
  top: 0;
  border-bottom: 1px solid rgba(122, 166, 210, .28);
  background: rgba(6, 17, 39, .88);
  backdrop-filter: blur(18px);
}

.legal-header-inner,
.legal-main,
.legal-footer-inner {
  width: min(100% - 2rem, 1120px);
  max-width: 1120px;
  min-width: 0;
  margin-inline: auto;
}

.legal-main,
.legal-main article,
.legal-hero,
.legal-layout,
.legal-toc,
.legal-content,
.legal-content section,
.legal-contact-card,
.legal-callout {
  min-width: 0;
  max-width: 100%;
}

.legal-header-inner {
  min-height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.legal-brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  color: white;
  font-size: 1.05rem;
  font-weight: 900;
  text-decoration: none;
}

.legal-brand img {
  width: 2rem;
  height: 2rem;
  border-radius: .55rem;
  object-fit: contain;
}

.legal-header-actions {
  display: flex;
  align-items: center;
  gap: .55rem;
}

.legal-back,
.legal-language {
  min-height: 2.5rem;
  border: 1px solid #5f82a9;
  border-radius: .75rem;
  background: #0c1c36;
  color: white;
  font: inherit;
  font-size: .86rem;
  font-weight: 800;
  text-decoration: none;
  padding: .55rem .85rem;
  cursor: pointer;
}

.legal-language[aria-pressed="true"] {
  border-color: var(--legal-blue);
  background: linear-gradient(135deg, #086ddd, #12bbef);
}

.legal-main { padding: clamp(2rem, 5vw, 4.75rem) 0 4rem; }

.legal-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(1.5rem, 5vw, 3.5rem);
  border: 1px solid #31577d;
  border-radius: 1.6rem;
  background: linear-gradient(145deg, rgba(20, 47, 82, .98), rgba(10, 28, 57, .98));
  box-shadow: 0 30px 80px rgba(0, 0, 0, .25);
}

.legal-hero::after {
  content: "";
  position: absolute;
  width: 18rem;
  height: 18rem;
  right: -7rem;
  top: -8rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(33, 182, 255, .38), transparent 68%);
  pointer-events: none;
}

.legal-eyebrow {
  margin: 0 0 .45rem;
  color: #8eb7e1;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .19em;
  text-transform: uppercase;
}

.legal-hero h1 {
  max-width: 800px;
  margin: 0;
  font-size: clamp(2.25rem, 6vw, 4.5rem);
  line-height: 1.03;
  letter-spacing: -.04em;
}

.legal-lede {
  max-width: 780px;
  margin: 1rem 0 0;
  color: #c1d3e9;
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.legal-hero,
.legal-content,
.legal-contact-card,
.legal-callout,
.legal-meta,
.legal-footer-inner {
  overflow-wrap: anywhere;
  word-break: normal;
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem 1.2rem;
  margin-top: 1.25rem;
  color: #a8bdd8;
  font-size: .88rem;
}

.legal-status {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .8rem;
  align-items: start;
  max-width: 850px;
  padding: 1rem;
  border: 1px solid rgba(255, 200, 92, .55);
  border-radius: 1rem;
  background: rgba(95, 63, 10, .34);
  color: #ffe9b8;
}

.legal-status strong { display: block; color: white; }
.legal-status p { margin: .15rem 0 0; }
.legal-status-icon {
  width: 1.8rem;
  height: 1.8rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #bd7300;
  color: white;
  font-weight: 900;
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(13rem, 15.5rem) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
  margin-top: 1.5rem;
}

.legal-toc,
.legal-content {
  border: 1px solid #294967;
  border-radius: 1.25rem;
  background: rgba(12, 29, 55, .92);
}

.legal-toc {
  position: sticky;
  top: 5.6rem;
  padding: 1rem;
}

.legal-toc strong {
  display: block;
  margin-bottom: .55rem;
  color: white;
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.legal-toc a {
  display: block;
  padding: .38rem .45rem;
  border-radius: .45rem;
  color: #abc2dd;
  font-size: .9rem;
  text-decoration: none;
}

.legal-toc a:hover { background: #142d4d; color: white; }

.legal-content { padding: clamp(1.1rem, 4vw, 2.4rem); }

.legal-content section + section {
  margin-top: 2.25rem;
  padding-top: 2.25rem;
  border-top: 1px solid #294968;
}

.legal-content h2 {
  margin: 0 0 .7rem;
  color: white;
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  line-height: 1.25;
}

.legal-content h3 {
  margin: 1.25rem 0 .35rem;
  color: #dfeeff;
  font-size: 1.05rem;
}

.legal-content p { margin: .65rem 0; color: #b8c9dd; }
.legal-content strong { color: #f7fbff; }
.legal-content ul { margin: .6rem 0; padding-left: 1.25rem; color: #b8c9dd; }
.legal-content li + li { margin-top: .45rem; }

.legal-callout {
  margin: 1rem 0;
  padding: 1rem 1.05rem;
  border-left: .25rem solid var(--legal-blue);
  border-radius: .2rem .85rem .85rem .2rem;
  background: #102c4d;
}

.legal-callout.green { border-left-color: var(--legal-green); background: #0c342f; }
.legal-callout.amber { border-left-color: var(--legal-amber); background: #3b2c14; }
.legal-callout p { margin: .2rem 0; }

.legal-table-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
  margin: 1rem 0;
  border: 1px solid #31506f;
  border-radius: .85rem;
}
.legal-table { width: 100%; min-width: 620px; border-collapse: collapse; }
.legal-table th,
.legal-table td { padding: .8rem; border-bottom: 1px solid #294967; text-align: left; vertical-align: top; }
.legal-table th { background: #163454; color: white; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }
.legal-table td { color: #b8c9dd; font-size: .9rem; }
.legal-table tr:last-child td { border-bottom: 0; }

.legal-contact-card {
  padding: 1.1rem;
  border: 1px solid #3a6c8e;
  border-radius: 1rem;
  background: linear-gradient(135deg, #10345a, #0c2a44);
}

.legal-contact-card p { margin: .2rem 0; }

.legal-footer {
  border-top: 1px solid rgba(112, 156, 202, .25);
  background: #051023;
}

.legal-footer-inner {
  min-height: 6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: #8fa7c2;
  font-size: .86rem;
}

.legal-footer-links { display: flex; flex-wrap: wrap; gap: .9rem; }
.legal-footer-links a { color: #bcd0e5; }

[hidden] { display: none !important; }

@media (max-width: 760px) {
  .legal-header-inner,
  .legal-main,
  .legal-footer-inner { width: min(100% - 1.25rem, 1120px); }
  .legal-header-inner { min-height: 4.15rem; }
  .legal-back { display: none; }
  .legal-layout { grid-template-columns: minmax(0, 1fr); }
  .legal-toc { position: static; }
  .legal-toc nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .15rem; }
  .legal-toc a { overflow-wrap: anywhere; }
  .legal-hero { border-radius: 1.2rem; }
  .legal-status { grid-template-columns: 1fr; }
  .legal-footer-inner { padding: 1.25rem 0; flex-direction: column; align-items: flex-start; }
  .legal-content p,
  .legal-content li,
  .legal-content a,
  .legal-contact-card,
  .legal-meta { overflow-wrap: anywhere; }
}

@media (max-width: 420px) {
  .legal-brand span { display: none; }
  .legal-header-actions { gap: .35rem; }
  .legal-language { padding-inline: .7rem; }
  .legal-toc nav { grid-template-columns: 1fr; }
  .legal-content { padding-inline: 1rem; }
}

@media print {
  :root { color-scheme: light; }
  body { background: white; color: #111; }
  .legal-header, .legal-toc, .legal-footer, .skip-link { display: none; }
  .legal-main { width: 100%; padding: 0; }
  .legal-hero, .legal-content { box-shadow: none; border: 0; background: white; color: #111; }
  .legal-hero h1, .legal-content h2, .legal-content h3, .legal-content strong { color: #111; }
  .legal-lede, .legal-meta, .legal-content p, .legal-content li { color: #333; }
  .legal-layout { display: block; }
  .legal-content { padding: 0; }
  .legal-callout, .legal-contact-card { background: #f3f5f7; color: #111; }
}
