:root {
  --navy: #0a305a;
  --navy-deep: #051b36;
  --paper: #eff4f9;
  --paper-line: rgba(10, 48, 90, 0.12);
  --copper: #b85018;
  --copper-light: #f2a65a;
  --ink: #0f1f33;
  --muted: #526477;
  --white: #fff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    linear-gradient(rgba(10, 48, 90, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 48, 90, 0.045) 1px, transparent 1px),
    var(--paper);
  background-size: 38px 38px;
  color: var(--ink);
  font-family: "Heebo", sans-serif;
  line-height: 1.75;
}
a { color: var(--navy); }
a:hover { color: #9f4617; }
img, svg { display: block; max-width: 100%; }
.wrap { width: min(100% - 40px, 920px); margin-inline: auto; }
.site-header {
  background: rgba(5, 27, 54, 0.97);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 20;
}
.header-inner {
  align-items: center;
  display: flex;
  justify-content: space-between;
  min-height: 72px;
}
.brand { align-items: center; color: var(--white); display: flex; gap: 12px; text-decoration: none; }
.brand-mark { width: 38px; }
.brand-name { font-family: "Suez One", serif; font-size: 1.05rem; line-height: 1.1; }
.brand-sub { color: var(--copper-light); font-size: 0.72rem; }
.brand-name, .brand-sub { display: block; }
.back-link {
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  color: var(--white);
  font-size: 0.88rem;
  padding: 8px 15px;
  text-decoration: none;
}
.back-link:hover { background: rgba(255, 255, 255, 0.08); color: var(--white); }
.legal-hero { background: var(--navy); color: var(--white); overflow: hidden; padding: 72px 0 88px; position: relative; }
.legal-hero::after {
  background: var(--copper);
  border-radius: 50%;
  content: "";
  height: 210px;
  left: -80px;
  opacity: 0.16;
  position: absolute;
  top: -65px;
  width: 210px;
}
.eyebrow { color: var(--copper-light); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; }
h1, h2, h3 { font-family: "Suez One", serif; font-weight: 400; line-height: 1.25; }
h1 { font-size: clamp(2.15rem, 7vw, 4rem); margin: 12px 0 14px; max-width: 720px; }
.hero-copy { color: rgba(255, 255, 255, 0.78); font-size: 1.05rem; margin: 0; max-width: 650px; }
.updated { color: rgba(255, 255, 255, 0.65); font-size: 0.82rem; margin-top: 22px; }
.legal-layout { display: grid; gap: 28px; grid-template-columns: 230px minmax(0, 1fr); margin-top: -38px; padding-bottom: 72px; position: relative; z-index: 2; }
.toc, .legal-card { background: var(--white); border: 1px solid var(--paper-line); border-radius: 14px; box-shadow: 0 18px 50px rgba(5, 27, 54, 0.08); }
.toc { align-self: start; padding: 22px; position: sticky; top: 92px; }
.toc strong { color: var(--navy); display: block; margin-bottom: 10px; }
.toc a { display: block; font-size: 0.88rem; padding: 5px 0; text-decoration: none; }
.legal-card { padding: clamp(25px, 5vw, 52px); }
.legal-card section + section { border-top: 1px solid var(--paper-line); margin-top: 32px; padding-top: 26px; }
.legal-card h2 { color: var(--navy); font-size: 1.55rem; margin: 0 0 12px; }
.legal-card h3 { color: var(--navy); font-size: 1.08rem; margin: 24px 0 8px; }
.legal-card p { margin: 0 0 13px; }
.legal-card ul { margin: 0 0 14px; padding-right: 22px; }
.legal-card li { margin-bottom: 7px; }
.note { background: #f8ede5; border-right: 4px solid var(--copper); border-radius: 8px; color: #57311d; margin: 24px 0; padding: 17px 19px; }
.contact-box { background: var(--navy-deep); border-radius: 12px; color: var(--white); margin-top: 26px; padding: 24px; }
.contact-box h2 { color: var(--copper-light); }
.contact-box a { color: var(--white); font-weight: 700; }
.site-footer { background: var(--navy-deep); color: rgba(255, 255, 255, 0.68); font-size: 0.84rem; padding: 32px 0; }
.footer-inner { align-items: center; display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; text-align: center; }
.social-links, .footer-links { display: flex; flex: 1 0 100%; flex-wrap: wrap; gap: 10px; justify-content: center; }
.social-links { margin-top: 4px; }
.footer-links { border-top: 1px solid rgba(255, 255, 255, 0.12); padding-top: 18px; }
.social-links a, .footer-links a { align-items: center; border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 999px; color: var(--white); display: inline-flex; font-weight: 700; justify-content: center; min-height: 40px; padding: 8px 15px; text-decoration: none; transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease; }
.social-links a { background: rgba(184, 80, 24, 0.18); border-color: rgba(242, 166, 90, 0.52); }
.social-links a:hover, .footer-links a:hover, .footer-links a[aria-current="page"] { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.4); }
.social-links a:hover, .footer-links a:hover { transform: translateY(-2px); }

:focus-visible { outline: 3px solid var(--copper-light); outline-offset: 4px; }
.skip-link {
  background: var(--white);
  color: var(--navy-deep);
  font-weight: 700;
  padding: 10px 16px;
  position: fixed;
  right: 18px;
  top: -80px;
  z-index: 9999;
}
.skip-link:focus { top: 14px; }
body.a11y-large-text { font-size: 118%; }
body.a11y-contrast { background: #fff; color: #111; }
body.a11y-contrast .legal-card, body.a11y-contrast .toc { border: 2px solid #111; box-shadow: none; }
body.a11y-contrast a { text-decoration: underline; }
body.a11y-links a { text-decoration: underline !important; text-underline-offset: 0.18em; }
.a11y-toggle {
  align-items: center;
  background: var(--navy-deep);
  border: 2px solid var(--white);
  border-radius: 999px;
  bottom: 18px;
  color: var(--white);
  cursor: pointer;
  display: flex;
  font: 700 0.86rem "Heebo", sans-serif;
  gap: 8px;
  min-height: 46px;
  padding: 9px 15px;
  position: fixed;
  right: 18px;
  z-index: 80;
}
.a11y-panel {
  background: var(--white);
  border: 2px solid var(--navy-deep);
  border-radius: 14px;
  bottom: 76px;
  box-shadow: 0 18px 50px rgba(5, 27, 54, 0.22);
  color: var(--ink);
  padding: 16px;
  position: fixed;
  right: 18px;
  width: min(310px, calc(100vw - 36px));
  z-index: 80;
}
.a11y-panel[hidden] { display: none; }
.a11y-panel strong { display: block; margin-bottom: 12px; }
.a11y-controls { display: grid; gap: 8px; grid-template-columns: 1fr 1fr; }
.a11y-control {
  background: var(--paper);
  border: 1px solid var(--paper-line);
  border-radius: 8px;
  color: var(--navy-deep);
  cursor: pointer;
  font: 700 0.82rem "Heebo", sans-serif;
  min-height: 44px;
  padding: 8px;
}
.a11y-control[aria-pressed="true"] { background: var(--navy); color: var(--white); }

@media (max-width: 760px) {
  .legal-layout { grid-template-columns: 1fr; }
  .toc { position: static; }
  .legal-hero { padding: 54px 0 72px; }
  .header-inner { min-height: 64px; }
  .brand-sub { display: none; }
  .social-links, .footer-links { display: grid; grid-template-columns: 1fr; width: 100%; }
  .social-links a, .footer-links a { width: 100%; }
}

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