/* ============================================================
   Shared stylesheet for legal pages (Legal Notice, Privacy,
   Cookies, Terms). Mirrors the design system of index.html
   but trimmed to what these document-style pages need.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Open Sans', system-ui, -apple-system, Arial, sans-serif;
  font-size: 16.5px;
  line-height: 1.7;
  color: #1f2937;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: #1a2744;
  line-height: 1.2;
  margin: 0 0 .6em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; }
h2 { font-size: 1.4rem; margin-top: 2em; }
h3 { font-size: 1.1rem; margin-top: 1.6em; }
p  { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.4em; }
li { margin-bottom: .35em; }
strong { color: #1a2744; }

:root {
  --navy: #1a2744;
  --navy-2: #243559;
  --navy-deep: #0f1a30;
  --gold: #f5a623;
  --gold-2: #ffbb3d;
  --gold-deep: #d18a0a;
  --muted: #5b6675;
  --line: #e6e9ef;
  --bg-soft: #f6f8fc;
  --bg-warm: #fff8eb;
  --shadow-sm: 0 2px 6px rgba(15, 26, 48, 0.06);
  --radius: 14px;
  --radius-lg: 22px;
  --container: 1000px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container-wide { max-width: 1200px; }

/* ---------- Header (mirrors index.html) ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.topbar {
  background: var(--navy-deep);
  color: #d8def0;
  font-size: 13px;
  padding: 7px 0;
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.topbar a { color: #d8def0; }
.topbar a:hover { color: var(--gold-2); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  display: grid; place-items: center;
  color: var(--gold);
  flex-shrink: 0;
}
.brand-name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  color: var(--navy);
  font-size: 17px;
  line-height: 1.1;
}
.brand-tag {
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}
.nav-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  padding: 9px 16px;
  border-radius: 999px;
  font-weight: 700;
  color: var(--navy);
  font-size: 14px;
  transition: border-color .2s ease, background .2s ease;
}
.nav-back:hover { border-color: var(--gold); background: var(--bg-warm); }

/* ---------- Page header ---------- */
.legal-hero {
  background: linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 60%, var(--navy-2) 100%);
  color: #fff;
  padding: 60px 0 50px;
}
.legal-hero h1 { color: #fff; margin: 0 0 .3em; }
.legal-hero .crumbs {
  font-size: 13px;
  color: #aab4c8;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 14px;
}
.legal-hero .crumbs a { color: var(--gold-2); }
.legal-hero .updated {
  color: #cbd3e3;
  font-size: 14px;
  margin: 12px 0 0;
}

/* ---------- Body ---------- */
.legal-body { padding: 50px 0 70px; }
.legal-body p, .legal-body li { color: #374151; }
.legal-body h2 { color: var(--navy); }
.legal-body h2::before {
  content: '';
  display: block;
  width: 42px; height: 4px;
  background: var(--gold);
  border-radius: 2px;
  margin-bottom: 14px;
}

.placeholder {
  background: #fff5d6;
  color: #8a6300;
  padding: 1px 6px;
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .9em;
  font-weight: 600;
  border: 1px dashed #d6ad3a;
}

.info-box {
  background: var(--bg-soft);
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  padding: 16px 20px;
  margin: 22px 0;
  font-size: 14.5px;
}
.info-box strong { color: var(--navy); }

.identity-table,
.cookies-table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0 26px;
  font-size: 14.5px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.identity-table th,
.identity-table td,
.cookies-table th,
.cookies-table td {
  text-align: left;
  padding: 12px 16px;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.identity-table th,
.cookies-table th {
  background: var(--navy);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 700;
}
.identity-table tr:last-child td,
.cookies-table tr:last-child td { border-bottom: none; }
.identity-table td:first-child {
  font-weight: 700;
  color: var(--navy);
  width: 220px;
  background: var(--bg-soft);
}
.cookies-table td { font-size: 13.5px; }

.toc {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin-bottom: 36px;
}
.toc h2 { margin: 0 0 12px; font-size: 1rem; letter-spacing: 0.06em; text-transform: uppercase; }
.toc h2::before { display: none; }
.toc ol { margin: 0; padding-left: 20px; }
.toc a { color: var(--navy); font-weight: 600; }
.toc a:hover { color: var(--gold-deep); }

/* ---------- Footer (mirrors index.html, condensed) ---------- */
.footer {
  background: #0c1424;
  color: #aab4c8;
  padding: 50px 0 24px;
  font-size: 14px;
}
.footer a:hover { color: var(--gold-2); }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 30px;
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }
.footer h4 {
  color: #fff;
  font-size: 13px;
  margin: 0 0 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-base {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 12.5px;
  color: #7c8699;
}
.footer-base ul { flex-direction: row; gap: 18px; }

/* ---------- Cookie banner (shared with index.html) ---------- */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  color: #1f2937;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 50px rgba(15, 26, 48, 0.22);
  padding: 22px 24px;
  z-index: 200;
  display: none;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 6px;
  font-size: 1.05rem;
}
.cookie-banner p {
  font-size: 14px;
  color: #374151;
  margin: 0 0 14px;
}
.cookie-banner a { color: var(--gold-deep); font-weight: 700; }
.cookie-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.cookie-actions button {
  flex: 1 1 auto;
  min-width: 130px;
  padding: 11px 18px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 14px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.cookie-actions .btn-accept {
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  color: #1a1a1a;
}
.cookie-actions .btn-accept:hover { transform: translateY(-1px); }
.cookie-actions .btn-reject {
  background: transparent;
  color: var(--navy);
  border-color: var(--line);
}
.cookie-actions .btn-reject:hover { border-color: var(--navy); }

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