@font-face { font-family: "Poppins"; font-style: normal; font-weight: 300; font-display: swap; src: url("/assets/fonts/poppins-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/poppins-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/poppins-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/poppins-latin-600-normal.woff2") format("woff2"); }

:root {
  --bg: #0d1819;
  --surface: rgba(18, 35, 36, 0.94);
  --surface-soft: rgba(27, 53, 55, 0.72);
  --line: rgba(213, 248, 255, 0.14);
  --text: #edf6f8;
  --muted: #adc6ca;
  --purple: #0a808f;
  --purple-light: #008599;
  --pink: #ff4d71;
  --warning: #ffd68a;
}

* { box-sizing: border-box; }

html { color-scheme: dark; scroll-behavior: smooth; }

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 0%, rgba(0, 133, 153, 0.14), transparent 32rem),
    linear-gradient(135deg, var(--bg) 0%, #102627 48%, #0c1516 100%);
  font-family: Poppins, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

a { color: #b9f5ff; }
a:hover { color: #fff; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: .55rem .8rem;
  border-radius: .6rem;
  color: #0d292a;
  background: #fff;
}

.skip-link:focus { top: 1rem; }

.legal-shell {
  width: min(100% - 2rem, 1120px);
  margin: 0 auto;
  padding: 1.25rem 0 3rem;
}

.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .5rem 0 2.25rem;
}

.brand { display: inline-flex; align-items: center; gap: .75rem; color: var(--text); text-decoration: none; font-weight: 700; }
.brand img { width: 42px; height: 34px; object-fit: contain; }
.brand span { letter-spacing: -.02em; }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .42rem .7rem;
  border: 1px solid rgba(255, 214, 138, .28);
  border-radius: 999px;
  color: var(--warning);
  background: rgba(255, 214, 138, .08);
  font-size: .78rem;
  font-weight: 700;
}

.status-pill::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: var(--warning); }

.legal-actions { display: flex; align-items: center; justify-content: flex-end; gap: .65rem; flex-wrap: wrap; }

.print-button {
  min-height: 2.75rem;
  padding: .55rem .85rem;
  border: 1px solid rgba(173, 243, 255, .4);
  border-radius: .7rem;
  color: #f1fdff;
  background: rgba(10, 128, 143, .18);
  font: inherit;
  font-size: .78rem;
  font-weight: 750;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.print-button:hover { border-color: rgba(173, 243, 255, .72); background: rgba(10, 128, 143, .34); }
.print-button:active { transform: translateY(1px); }
.print-button:focus-visible, a:focus-visible { outline: 2px solid #c8f7ff; outline-offset: 3px; }

.legal-card {
  padding: clamp(1.25rem, 3vw, 2.4rem);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: linear-gradient(145deg, var(--surface), rgba(15, 27, 28, .96));
  box-shadow: 0 24px 80px rgba(6, 11, 12, .28);
}

.eyebrow { margin: 0 0 .65rem; color: #a9f3ff; font-size: .75rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
h1 { max-width: 850px; margin: 0; font-size: clamp(2rem, 4vw, 3.45rem); line-height: 1.08; letter-spacing: -.045em; }
.lead { max-width: 760px; margin: 1rem 0 0; color: var(--muted); font-size: 1.05rem; }

.review-note {
  margin: 1.75rem 0 2rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(0, 133, 153, .32);
  border-radius: .85rem;
  color: #dcf9ff;
  background: linear-gradient(135deg, rgba(10, 128, 143, .19), rgba(255, 77, 113, .08));
}

.legal-print-warning { display: none; }

.legal-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; margin: 1.6rem 0 1.15rem; }
.legal-meta div { display: grid; gap: .15rem; min-width: 0; padding: .75rem .85rem; border: 1px solid rgba(213, 248, 255, .1); border-radius: .75rem; background: rgba(27, 53, 55, .48); }
.legal-meta span { color: #97b3b7; font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.legal-meta strong { color: #e3f5f8; font-size: .86rem; font-weight: 650; overflow-wrap: anywhere; }

.legal-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(15rem, .34fr); grid-template-areas: "content aside"; gap: 2rem; align-items: start; }
.legal-content { grid-area: content; min-width: 0; line-height: 1.72; }
.legal-content h2 { margin: 2.15rem 0 .75rem; font-size: 1.25rem; line-height: 1.25; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content h2 { scroll-margin-top: 1.2rem; }
.legal-content p { margin: 0 0 1.1rem; }
.legal-content p, .legal-content li { color: #cadadd; }
.legal-content ul { padding-left: 1.2rem; }
.legal-content li + li { margin-top: .45rem; }

.legal-aside { grid-area: aside; position: sticky; top: 1rem; padding: 1rem; border: 1px solid var(--line); border-radius: .95rem; background: var(--surface-soft); }
.legal-aside h2 { margin: 0 0 .7rem; font-size: 1rem; }
.legal-aside ul { margin: 0; padding-left: 1.1rem; color: var(--muted); font-size: .92rem; }
.legal-aside li + li { margin-top: .5rem; }

.legal-toc ol { display: grid; gap: .45rem; margin: 0; padding-left: 1.35rem; color: #b8d5da; font-size: .9rem; }
.legal-toc a { color: #b9f5ff; text-decoration: none; text-underline-offset: .2em; }
.legal-toc a:hover { color: #fff; text-decoration: underline; }
.legal-aside-divider { height: 1px; margin: 1.15rem 0; background: var(--line); }
.publication-checklist ul { color: var(--muted); }

.pending { margin-top: 1rem; padding: .8rem .9rem; border-left: 1px solid var(--purple-light); color: var(--muted); background: rgba(10, 128, 143, .08); font-size: .9rem; }
.legal-footer { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.1rem; color: #86a0a3; font-size: .82rem; }

@media (max-width: 760px) {
  .legal-shell { width: min(100% - 1.1rem, 680px); padding-top: .6rem; }
  .legal-header { align-items: flex-start; padding-bottom: 1.2rem; }
  .legal-actions { align-items: flex-end; flex-direction: column; gap: .45rem; }
  .status-pill { max-width: 12rem; text-align: right; }
  .legal-meta { grid-template-columns: 1fr; }
  .legal-grid { grid-template-columns: 1fr; grid-template-areas: "aside" "content"; gap: 1.25rem; }
  .legal-aside { position: static; }
  .legal-footer { flex-direction: column; }
}

@media (max-width: 480px) {
  .legal-header { gap: .7rem; }
  .brand { gap: .55rem; }
  .brand img { width: 34px; height: 30px; }
  .brand span { font-size: .95rem; }
  .legal-actions { max-width: 11.8rem; }
  .status-pill { padding: .35rem .55rem; font-size: .7rem; }
  .print-button { width: 100%; font-size: .75rem; }
  .legal-card { padding: 1.1rem; border-radius: 1rem; }
  h1 { font-size: clamp(1.85rem, 10vw, 2.45rem); }
  .lead { font-size: .95rem; }
}

@media print {
  :root { color-scheme: light; }
  body { color: #121d1e; background: #fff; }
  .legal-shell { width: 100%; max-width: none; padding: 0; }
  .legal-header, .legal-aside, .legal-footer, .skip-link, .review-note { display: none; }
  .legal-print-warning { display: block; margin: 1rem 0 1.25rem; padding: .7rem .8rem; border: 1px solid #b45309; border-radius: .45rem; color: #78350f; background: #fff7ed; font-weight: 750; }
  .legal-card { padding: 0; border: 0; border-radius: 0; background: #fff; box-shadow: none; }
  .legal-meta { border-bottom: 1px solid #ddd; padding-bottom: 1rem; }
  .legal-meta div { border: 0; padding: .2rem 0; background: transparent; }
  .legal-meta span, .legal-meta strong, .lead, .eyebrow, .legal-content h2, .legal-content p, .legal-content li, .pending { color: #222; }
  .legal-meta a { color: inherit; }
  .pending { border: 1px solid #b45309; background: #fff7ed; }
  .legal-content a { color: inherit; text-decoration: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
