:root {
  --navy-deep: #0d1f3c;
  --navy: #142850;
  --navy-light: #1d3461;
  --orange: #e86a33;
  --orange-bright: #f08a4b;
  --cream: #f5e6c8;
  --cream-soft: #ebd9b5;
  --cream-dim: rgba(245, 230, 200, 0.65);
  --rule: rgba(245, 230, 200, 0.22);
  --serif: Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--navy-deep);
  color: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.18;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.7 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

a { color: inherit; text-decoration: none; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

header.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 31, 60, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.5rem;
  max-width: 1180px;
  margin: 0 auto;
}

.logo {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--cream);
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 2px var(--navy-deep), 0 0 0 3px var(--orange);
  flex-shrink: 0;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.75rem;
  font-size: 0.92rem;
}

nav a {
  color: var(--cream-dim);
  transition: color 0.2s;
  font-weight: 500;
}

nav a:hover,
nav a:focus { color: var(--orange-bright); outline: none; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--rule);
  color: var(--cream);
  padding: 0.4rem 0.7rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
}

.legal-page {
  max-width: 920px;
  margin: 0 auto;
  padding: 5rem 1.5rem 3rem;
}

.legal-hero {
  text-align: center;
  margin-bottom: 2rem;
}

.eyebrow,
.section-eyebrow {
  font-family: var(--serif);
  font-style: italic;
  color: var(--orange);
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 0.75rem;
}

.legal-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.35rem, 6vw, 4rem);
  line-height: 1.05;
  color: var(--cream);
  letter-spacing: -0.5px;
  margin-bottom: 1rem;
}

.legal-hero p {
  color: var(--cream-dim);
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.02rem;
}

.legal-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  background: rgba(20, 40, 80, 0.45);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--orange);
  border-radius: 6px;
  padding: 1.25rem;
  margin: 0 auto 2rem;
}

.legal-meta div {
  color: var(--cream-dim);
  font-size: 0.92rem;
}

.legal-meta strong {
  display: block;
  color: var(--orange-bright);
  font-family: var(--serif);
  font-size: 0.78rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.legal-content {
  max-width: 820px;
  margin: 0 auto;
  background: rgba(13, 31, 60, 0.55);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: clamp(1.35rem, 4vw, 2.5rem);
  color: var(--cream-soft);
  font-size: 1rem;
  line-height: 1.65;
}

.legal-content h2 {
  font-family: var(--serif);
  color: var(--cream);
  font-size: 1.45rem;
  line-height: 1.25;
  margin: 2rem 0 0.75rem;
}

.legal-content h2:first-child { margin-top: 0; }

.legal-content h3 {
  font-family: var(--serif);
  color: var(--orange-bright);
  font-size: 1.05rem;
  margin: 1.4rem 0 0.45rem;
}

.legal-content p,
.legal-content ul,
.legal-content ol,
.legal-content address { margin-bottom: 1rem; }

.legal-content ul,
.legal-content ol { padding-left: 1.3rem; }

.legal-content li { margin-bottom: 0.45rem; }

.legal-content a {
  color: var(--cream);
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-underline-offset: 3px;
}

.table-wrap {
  overflow-x: auto;
  margin: 1.25rem 0;
  border: 1px solid var(--rule);
  border-radius: 6px;
}

.legal-content table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
}

.legal-content th,
.legal-content td {
  padding: 0.8rem 0.9rem;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
}

.legal-content th {
  color: var(--orange-bright);
  font-family: var(--serif);
  font-size: 0.9rem;
}

.legal-content tr:last-child td { border-bottom: 0; }

.legal-section { margin-top: 1.5rem; }

.legal-card {
  background: rgba(20, 40, 80, 0.4);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 1.25rem;
}

.legal-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 2rem;
}

.legal-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1.5px solid rgba(245, 230, 200, 0.25);
  border-radius: 10px;
  padding: 0.65rem 1rem;
  color: var(--cream);
  background: rgba(245, 230, 200, 0.05);
  font-weight: 600;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.legal-actions a:hover {
  border-color: var(--orange);
  background: rgba(232, 106, 51, 0.08);
  color: var(--orange-bright);
}

footer {
  background: #08152e;
  border-top: 1px solid var(--rule);
  padding: 4rem 0 2rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  color: var(--cream-dim);
  font-size: 0.88rem;
  margin-top: 1rem;
  line-height: 1.65;
}

.footer-col h5 {
  font-family: var(--serif);
  font-size: 0.78rem;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.footer-col ul { list-style: none; }
.footer-col li { padding: 0.3rem 0; }

.footer-col a {
  color: var(--cream-dim);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--cream); }

.footer-bottom {
  border-top: 1px solid var(--rule);
  padding-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  color: var(--cream-dim);
  font-size: 0.82rem;
}

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 2px;
}

@media (max-width: 768px) {
  nav ul { display: none; }
  .nav-toggle { display: block; }
  nav.open ul {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    padding: 1.25rem 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid var(--rule);
  }

  .legal-page { padding-top: 3.5rem; }
  .legal-meta { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .legal-actions { align-items: stretch; flex-direction: column; }
}

@media print {
  body {
    background: #fff;
    color: #000;
  }

  body::before,
  header.site-nav,
  footer,
  .legal-actions {
    display: none;
  }

  .legal-page,
  .legal-content {
    max-width: none;
    padding: 0;
    margin: 0;
    background: #fff;
    border: 0;
    color: #000;
  }

  .legal-hero,
  .legal-meta {
    text-align: left;
    background: #fff;
    border-color: #999;
    color: #000;
  }

  .legal-content a::after {
    content: " (" attr(href) ")";
  }
}
