:root {
  --navy: #0d1f3d;
  --navy-deep: #061120;
  --gold: #d4af37;
  --gold-light: #f2cf74;
  --ivory: #fffaf0;
  --paper: #f7f1e6;
  --ink: #13213a;
  --muted: #626b79;
  --line: rgba(13, 31, 61, 0.13);
  --font: "Montserrat", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; color: var(--ink); background: var(--paper); font-family: var(--font); line-height: 1.75; }
button, a { font: inherit; }
a { color: inherit; }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }

.legal-header {
  position: sticky;
  top: 0;
  z-index: 10;
  color: var(--ivory);
  background: rgba(6, 17, 32, 0.97);
  border-bottom: 1px solid rgba(212, 175, 55, 0.35);
  backdrop-filter: blur(16px);
}
.header-inner { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 13px; text-decoration: none; }
.brand-logo { width: 58px; height: 58px; object-fit: contain; }
.brand-wordmark { width: 205px; max-height: 58px; object-fit: contain; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-link, .gold-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 15px;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
}
.header-link { color: var(--ivory); border: 1px solid rgba(255,255,255,.18); }
.gold-button { color: #171105; background: linear-gradient(135deg, #ffe9a2, var(--gold)); }

.legal-hero {
  position: relative;
  overflow: hidden;
  padding: 84px 0 72px;
  color: var(--ivory);
  background:
    linear-gradient(115deg, rgba(6,17,32,.98), rgba(13,31,61,.91)),
    url("../assets/img/hero-motto.png") center / cover;
  border-bottom: 1px solid rgba(212,175,55,.45);
}
.legal-hero::after { content: ""; position: absolute; inset: auto 0 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.eyebrow { margin: 0 0 15px; color: var(--gold-light); font-size: .76rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
h1 { max-width: 800px; margin: 0; font-size: clamp(2.35rem, 6vw, 5.2rem); line-height: 1.02; letter-spacing: -.035em; }
.lead { max-width: 820px; margin: 24px 0 0; color: rgba(255,250,240,.78); font-size: clamp(1rem, 2vw, 1.18rem); font-weight: 500; }
.legal-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.legal-meta span { padding: 7px 11px; border: 1px solid rgba(212,175,55,.35); border-radius: 999px; color: var(--gold-light); background: rgba(255,255,255,.045); font-size: .78rem; font-weight: 750; }

.legal-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 42px; align-items: start; padding: 54px 0 78px; }
.toc { position: sticky; top: 112px; padding: 20px; border: 1px solid rgba(212,175,55,.28); border-radius: 8px; background: var(--navy); box-shadow: 0 18px 48px rgba(13,31,61,.14); }
.toc strong { display: block; margin-bottom: 13px; color: var(--gold-light); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.toc nav { display: grid; gap: 4px; max-height: calc(100vh - 190px); overflow-y: auto; }
.toc a { padding: 6px 8px; border-radius: 5px; color: rgba(255,250,240,.7); font-size: .76rem; font-weight: 650; line-height: 1.35; text-decoration: none; }
.toc a:hover, .toc a:focus-visible { color: var(--navy-deep); background: var(--gold-light); }
.legal-content { min-width: 0; }
.legal-section { scroll-margin-top: 112px; padding: 31px clamp(22px, 4vw, 42px); border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.94); box-shadow: 0 18px 48px rgba(13,31,61,.07); }
.legal-section + .legal-section { margin-top: 18px; }
.legal-section h2 { margin: 0 0 18px; color: var(--navy); font-size: clamp(1.25rem, 2.5vw, 1.65rem); line-height: 1.25; }
.legal-section p { margin: 0 0 14px; color: #344158; }
.legal-section p:last-child { margin-bottom: 0; }
.legal-section ul { margin: 0; padding-left: 21px; color: #344158; }
.legal-section li + li { margin-top: 5px; }
.legal-section a { color: #805b0d; font-weight: 750; }
.inline-cookie-link {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  color: #805b0d;
  background: transparent;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.inline-cookie-link:hover,
.inline-cookie-link:focus-visible { color: var(--navy); }
.operator-card { display: grid; gap: 4px; padding: 18px; border-left: 3px solid var(--gold); background: var(--ivory); }
.quote { padding: 18px; border: 1px solid rgba(212,175,55,.4); border-radius: 6px; color: var(--navy); background: #fff9e8; font-weight: 700; }

.site-footer { color: var(--ivory); background: var(--navy-deep); border-top: 1px solid rgba(212,175,55,.3); }
.footer-grid { display: grid; grid-template-columns: minmax(250px,1.15fr) minmax(250px,1fr) minmax(210px,.72fr); gap: clamp(28px,5vw,72px); align-items: start; padding: 48px 0 28px; }
.footer-company p { max-width: 300px; margin: 16px 0 0; color: rgba(255,250,240,.65); font-size: .84rem; line-height: 1.6; }
.footer-contact, .footer-legal { display: grid; align-content: start; gap: 8px; color: rgba(255,250,240,.66); font-size: .78rem; line-height: 1.5; }
.footer-contact strong, .footer-legal strong { margin-bottom: 5px; color: var(--gold-light); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; }
.footer-contact a, .footer-legal a, .footer-cookie-link { width: fit-content; color: rgba(255,250,240,.86); font-weight: 700; text-decoration: none; }
.footer-cookie-link { margin: 0; padding: 0; border: 0; background: transparent; cursor: pointer; }
.footer-contact a:hover, .footer-legal a:hover, .footer-cookie-link:hover, .footer-cookie-link:focus-visible { color: var(--gold-light); }
.footer-bottom { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 20px; padding-top: 22px; border-top: 1px solid rgba(212,175,55,.16); color: rgba(255,250,240,.5); font-size: .72rem; font-weight: 600; }

@media (max-width: 900px) {
  .legal-layout { grid-template-columns: 1fr; gap: 20px; padding-top: 30px; }
  .toc { position: static; }
  .toc nav { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: 280px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { grid-column: auto; flex-direction: column; gap: 6px; }
}
@media (max-width: 640px) {
  .container { width: min(100% - 28px, 1180px); }
  .header-inner { min-height: 76px; }
  .brand-logo { width: 48px; height: 48px; }
  .brand-wordmark { width: 150px; }
  .header-link { display: none; }
  .gold-button { padding: 0 11px; font-size: .72rem; }
  .legal-hero { padding: 58px 0 48px; }
  .toc nav { grid-template-columns: 1fr; }
  .legal-section { padding: 24px 18px; }
}
