:root {
  color-scheme: dark;
  --navy-950: #02131f;
  --navy-900: #031b2b;
  --navy-800: #08293a;
  --navy-700: #0e3c50;
  --line: rgba(127, 197, 207, 0.24);
  --text: #eef7f8;
  --muted: #a9c2c8;
  --teal: #7fd9df;
  --orange: #d95522;
  --orange-soft: #f49a58;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--navy-950); }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 78% 8%, rgba(217, 85, 34, 0.13), transparent 28rem),
    linear-gradient(180deg, var(--navy-900), var(--navy-950) 72%);
  font-size: 16px;
  line-height: 1.7;
}

a { color: var(--teal); text-underline-offset: 0.18em; }
a:hover { color: #b7f1f3; }
button, select { font: inherit; }

.skip-link {
  position: fixed;
  z-index: 20;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 0.9rem;
  border-radius: 0.55rem;
  color: #fff;
  background: var(--orange);
  transform: translateY(-180%);
}
.skip-link:focus { transform: translateY(0); }

.ambient { position: fixed; inset: 0; overflow: hidden; pointer-events: none; opacity: 0.45; }
.ambient span {
  position: absolute;
  width: 32rem;
  height: 32rem;
  border: 1px solid rgba(127, 217, 223, 0.08);
  border-radius: 50%;
  filter: blur(2px);
}
.ambient span:nth-child(1) { top: 7rem; right: -18rem; }
.ambient span:nth-child(2) { top: 34rem; left: -22rem; }
.ambient span:nth-child(3) { top: 72rem; right: -24rem; }

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(3, 27, 43, 0.91);
  backdrop-filter: blur(18px) saturate(120%);
}
.header-inner, .primary-nav, main, footer {
  width: min(100% - 2rem, 1040px);
  margin-inline: auto;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 5rem;
  gap: 1.5rem;
}
.brand { display: inline-flex; width: min(13rem, 48vw); }
.brand img { display: block; width: 100%; height: auto; }
.language-control { display: flex; align-items: center; gap: 0.6rem; color: var(--muted); font-size: 0.88rem; }
.language-control select {
  min-height: 2.5rem;
  padding: 0.4rem 2.2rem 0.4rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  color: var(--text);
  background: var(--navy-800);
}
.primary-nav { display: flex; gap: 0.45rem; overflow-x: auto; padding-block: 0 0.75rem; scrollbar-width: thin; }
.primary-nav a {
  flex: 0 0 auto;
  padding: 0.42rem 0.75rem;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
}
.primary-nav a:hover, .primary-nav a[aria-current="page"] {
  border-color: var(--line);
  color: var(--text);
  background: rgba(127, 217, 223, 0.08);
}

main { position: relative; padding-block: clamp(2.5rem, 7vw, 5.5rem); }
.hero { max-width: 760px; margin-bottom: 2.5rem; }
.eyebrow {
  margin: 0 0 0.6rem;
  color: var(--orange-soft);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
h1, h2, h3 { margin-top: 0; line-height: 1.18; letter-spacing: -0.025em; }
h1 { margin-bottom: 1rem; font-size: clamp(2.15rem, 7vw, 4.5rem); }
h1, h2 { hyphens: auto; overflow-wrap: anywhere; }
h2 { margin-bottom: 0.9rem; color: var(--orange-soft); font-size: clamp(1.25rem, 3vw, 1.65rem); }
.lead { color: var(--muted); font-size: clamp(1.03rem, 2vw, 1.22rem); }
.meta { display: flex; flex-wrap: wrap; gap: 0.7rem 1.2rem; color: var(--muted); font-size: 0.9rem; }

.document-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1rem;
}
.document-card, .legal-section, .action-card, .contact-card {
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: linear-gradient(145deg, rgba(14, 60, 80, 0.74), rgba(5, 34, 49, 0.86));
  box-shadow: var(--shadow);
}
.document-card { display: flex; flex-direction: column; min-height: 13.5rem; padding: 1.3rem; color: inherit; text-decoration: none; }
.document-card:hover { border-color: rgba(244, 154, 88, 0.6); transform: translateY(-2px); }
.document-card h2 { color: var(--text); font-size: 1.2rem; }
.document-card p { margin: 0; color: var(--muted); }
.document-card span { margin-top: auto; padding-top: 1rem; color: var(--orange-soft); font-weight: 750; }

.document { max-width: 860px; }
.legal-section { margin-top: 1rem; padding: clamp(1.15rem, 3vw, 1.75rem); }
.legal-section, .action-card, .contact-card { overflow-wrap: anywhere; }
.legal-section p:last-child, .legal-section ul:last-child { margin-bottom: 0; }
.legal-section li + li { margin-top: 0.42rem; }
.legal-section li::marker { color: var(--orange-soft); }
.action-card, .contact-card { margin: 1.5rem 0; padding: clamp(1.2rem, 4vw, 2rem); border-color: rgba(217, 85, 34, 0.5); }
.action-card h2, .contact-card h2 { color: var(--text); }
.button-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.2rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-height: 2.9rem;
  padding: 0.65rem 1rem;
  border: 1px solid rgba(244, 154, 88, 0.7);
  border-radius: 0.72rem;
  color: #fff;
  background: linear-gradient(135deg, #d95522, #a83a18);
  text-decoration: none;
  text-align: center;
  overflow-wrap: anywhere;
  font-weight: 760;
}
.button.secondary { color: var(--text); background: rgba(127, 217, 223, 0.08); border-color: var(--line); }
.address { white-space: pre-line; }

footer { position: relative; padding-block: 2rem 3rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.88rem; }
footer p { margin: 0.25rem 0; }
.error { max-width: 720px; padding: 2rem; border: 1px solid #a74a37; border-radius: 1rem; background: rgba(92, 24, 15, 0.32); }

@media (max-width: 640px) {
  .header-inner { align-items: flex-start; min-height: 0; padding-block: 1rem; }
  .language-control { align-items: flex-start; flex-direction: column; gap: 0.2rem; }
  .language-control label { font-size: 0.75rem; }
  .primary-nav { width: 100%; padding-inline: 1rem; }
  .document-card { min-height: 0; }
}

@media print {
  body { color: #111; background: #fff; }
  .site-header, .ambient, .button-row, footer { display: none; }
  main { width: 100%; padding: 0; }
  .legal-section, .action-card, .contact-card { break-inside: avoid; color: #111; background: #fff; box-shadow: none; border-color: #bbb; }
  h1, h2, a { color: #111; }
  .lead, .meta { color: #333; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
