:root {
  --fi-red: #b80719;
  --fi-gold: #c8a96e;
  --fi-cream: #f7f3ec;
  --fi-paper: #ffffff;
  --fi-ink: #3d3d3d;
  --fi-muted: #5a5e63;
  --fi-line: rgba(61, 61, 61, 0.14);
  --fi-footer: #5a5e63;
  --fi-shadow: 0 28px 80px rgba(25, 27, 30, 0.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--fi-ink);
  background: var(--fi-paper);
  font-family: "DM Sans", "Avenir Next", Avenir, system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.7;
}
a { color: inherit; }
a:hover { color: var(--fi-red); }
button, input, textarea { font: inherit; }

.legal-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  padding: 14px clamp(20px, 5vw, 72px);
  color: white;
  background: rgba(90, 94, 99, 0.96);
  border-bottom: 1px solid rgba(200, 169, 110, 0.35);
  backdrop-filter: blur(14px);
}
.brand {
  color: white;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 30px;
  font-weight: 400;
  letter-spacing: .02em;
  text-decoration: none;
}
.brand b { color: var(--fi-gold); font-weight: 400; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.legal-nav a {
  color: rgba(255,255,255,.8);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .13em;
  text-decoration: none;
  text-transform: uppercase;
}
.legal-nav a[aria-current="page"], .legal-nav a:hover { color: white; }

.legal-hero {
  padding: clamp(72px, 10vw, 132px) clamp(20px, 8vw, 120px) clamp(58px, 8vw, 98px);
  background:
    radial-gradient(circle at 88% 12%, rgba(200,169,110,.22), transparent 32%),
    linear-gradient(145deg, #f8f6f1, white 58%);
  border-bottom: 1px solid var(--fi-line);
}
.eyebrow {
  margin: 0 0 16px;
  color: var(--fi-red);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}
h1, h2, h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 300;
  line-height: 1.15;
}
h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(32px, 4.2vw, 52px);
  letter-spacing: .01em;
}
.legal-hero p:last-child {
  max-width: 740px;
  margin: 20px 0 0;
  color: var(--fi-muted);
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.7;
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(240px, 320px);
  gap: clamp(44px, 8vw, 110px);
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(58px, 8vw, 110px) clamp(20px, 5vw, 72px);
}
.legal-content h2 {
  margin: 48px 0 16px;
  padding-top: 10px;
  font-size: clamp(22px, 2.6vw, 30px);
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 { margin: 26px 0 8px; font-size: 19px; font-weight: 500; }
.legal-content p, .legal-content li { color: #494b4e; }
.legal-content ul { padding-left: 1.2em; }
.legal-content li + li { margin-top: 7px; }
.section-no {
  display: inline-block;
  min-width: 42px;
  color: var(--fi-red);
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  vertical-align: middle;
}
.note {
  margin: 0 0 36px;
  padding: 22px 24px;
  background: rgba(184,7,25,.055);
  border-left: 3px solid var(--fi-red);
}
.meta-card {
  position: sticky;
  top: 112px;
  align-self: start;
  padding: 30px;
  background: var(--fi-cream);
  border-top: 3px solid var(--fi-gold);
}
.meta-card h2 { margin: 0 0 14px; font-size: 21px; }
.meta-card p { margin: 8px 0; color: var(--fi-muted); font-size: 14px; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 19px;
  border: 1px solid var(--fi-red);
  border-radius: 0;
  color: white;
  background: var(--fi-red);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .05em;
  text-decoration: none;
  cursor: pointer;
}
.btn-secondary { color: var(--fi-red); background: transparent; }
.btn:hover { color: white; background: #960613; }
.btn-secondary:hover { color: white; }

.data-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.data-card { padding: 22px; border: 1px solid var(--fi-line); }
.data-card strong { display: block; margin-bottom: 7px; color: var(--fi-red); }

.withdrawal-form { display: grid; gap: 20px; margin-top: 30px; }
.withdrawal-form label { display: grid; gap: 8px; font-weight: 600; }
.withdrawal-form span { color: var(--fi-muted); font-size: 13px; font-weight: 400; }
.withdrawal-form input, .withdrawal-form textarea {
  width: 100%;
  padding: 14px 15px;
  color: var(--fi-ink);
  background: white;
  border: 1px solid rgba(61,61,61,.35);
  border-radius: 0;
}
.withdrawal-form input:focus, .withdrawal-form textarea:focus {
  outline: 2px solid rgba(184,7,25,.25);
  border-color: var(--fi-red);
}

.legal-footer {
  padding: 46px clamp(20px, 5vw, 72px);
  color: rgba(255,255,255,.68);
  background: var(--fi-footer);
  font-size: 13px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  max-width: 1240px;
  margin: 0 auto;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 14px 22px; }
.footer-links a { color: white; }

.consent-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: none;
  padding: 22px;
  background: rgba(22,24,27,.58);
  overflow: auto;
}
.consent-backdrop.is-open { display: grid; place-items: center; }
.consent-panel {
  width: min(100%, 680px);
  max-height: calc(100vh - 44px);
  overflow: auto;
  padding: clamp(24px, 5vw, 44px);
  background: white;
  border-top: 5px solid var(--fi-red);
  box-shadow: var(--fi-shadow);
}
.consent-panel h2 { margin: 0 0 12px; font-size: clamp(28px, 4vw, 38px); font-weight: 400; }
.consent-panel > p { color: var(--fi-muted); }
.consent-links { display: flex; gap: 18px; margin: 18px 0; font-size: 14px; }
.consent-category {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 20px;
  padding: 18px 0;
  border-top: 1px solid var(--fi-line);
}
.consent-category strong { font-size: 16px; }
.consent-category p { grid-column: 1; margin: 0; color: var(--fi-muted); font-size: 13px; }
.switch {
  position: relative;
  width: 48px;
  height: 27px;
}
.switch input { position: absolute; opacity: 0; }
.switch span {
  position: absolute;
  inset: 0;
  border-radius: 99px;
  background: #d9dce1;
  cursor: pointer;
}
.switch span::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: white;
  transition: transform .18s ease;
}
.switch input:checked + span { background: var(--fi-red); }
.switch input:checked + span::after { transform: translateX(21px); }
.switch input:focus-visible + span { outline: 3px solid rgba(184,7,25,.28); }
.switch input:disabled + span { background: var(--fi-gold); cursor: not-allowed; }
.consent-actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 22px; }
.consent-actions .btn:first-child { grid-column: 1 / -1; }
.cookie-settings {
  padding: 0;
  color: inherit;
  background: none;
  border: 0;
  text-decoration: underline;
  cursor: pointer;
}

@media (max-width: 860px) {
  .legal-header { position: static; align-items: flex-start; flex-direction: column; gap: 10px; }
  .legal-layout { grid-template-columns: 1fr; }
  .meta-card { position: static; }
  .footer-inner { flex-direction: column; }
}
@media (max-width: 580px) {
  .legal-nav { gap: 6px 13px; }
  .data-grid { grid-template-columns: 1fr; }
  .consent-actions { grid-template-columns: 1fr; }
  .consent-actions .btn:first-child { grid-column: auto; }
}
@media print {
  .legal-header, .legal-footer, .meta-card, .consent-backdrop { display: none !important; }
  .legal-layout { display: block; max-width: none; padding: 0; }
  .legal-hero { padding: 0 0 30px; background: white; }
}
