/* Brockenhurst Masonic Centre — bespoke site for TylerHQ custom site mode.
   Widgets are <div data-tylerhq="..."> placeholders; TylerHQ injects the loader. */

/* Self-hosted fonts (no requests to Google). Cormorant is a variable font: one file covers 500-600. */
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 500; font-display: swap; src: url('../fonts/cormorant-garamond-500-italic.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/cormorant-garamond-500.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/cormorant-garamond-500.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Lato'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/lato-400.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Lato'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/lato-700.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }


:root {
  --ink: #0f182c;        /* crest background — header, footer */
  --navy: #042045;       /* full logo background */
  --navy-2: #0b2f5e;
  --gold: #c99a3e;
  --gold-deep: #8a6418;  /* AA contrast for small text on cream/white */
  --gold-soft: #e6c98a;
  --cream: #faf7f1;
  --paper: #ffffff;
  --text: #1d2433;
  --muted: #5b6475;
  --line: rgba(4, 32, 69, 0.12);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Lato", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1160px;
  --radius: 14px;
  --shadow: 0 18px 40px -22px rgba(4, 20, 45, 0.45);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--cream);
}
img { max-width: 100%; display: block; }
a { color: var(--navy-2); }
a:hover { color: var(--gold-deep); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.12; color: var(--navy); margin: 0 0 .5em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2.1rem, 4vw, 3rem); }
h3 { font-size: 1.6rem; }
p { margin: 0 0 1.1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--ink); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* Placeholder copy awaiting the centre's figures — must be gone before publish. */
.tbc { background: #fff3c4; color: #7a5b00; border: 1px dashed #d4a72c; border-radius: 4px; padding: 0 6px; font-weight: 700; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15, 24, 44, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(201, 154, 62, 0.25);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 78px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.brand img { width: 54px; height: 54px; }
.brand span { display: flex; flex-direction: column; line-height: 1.05; }
.brand strong { font-family: var(--serif); font-size: 1.45rem; letter-spacing: .06em; font-weight: 600; text-transform: uppercase; }
.brand small { font-size: .7rem; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); }
.brand:hover { color: #fff; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: rgba(255,255,255,.86); text-decoration: none; font-size: .9rem; letter-spacing: .06em;
  padding: 10px 14px; border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--gold); }
.nav .btn { margin-left: 10px; border-bottom: 0; }
.menu-toggle { display: none; background: none; border: 1px solid rgba(255,255,255,.3); color: #fff; border-radius: 8px; padding: 8px 12px; font: inherit; font-size: .9rem; cursor: pointer; }

@media (max-width: 920px) {
  .menu-toggle { display: inline-block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink); padding: 8px 16px 18px; border-bottom: 1px solid rgba(201,154,62,.25);
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 8px; border-bottom: 1px solid rgba(255,255,255,.07); text-align: center; }
  .nav .btn { margin: 14px 0 0; text-align: center; justify-content: center; }
  .brand strong { font-size: 1.2rem; }
  .brand img { width: 46px; height: 46px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-weight: 700; font-size: .88rem; letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; padding: 14px 26px; border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-soft); color: var(--ink); }
.btn-ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-soft); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); color: #fff; }
.nav .btn-gold { padding: 11px 20px; color: var(--ink); }

/* ---------- Hero ---------- */
/* Heroes always fill the viewport below the sticky header. */
.hero {
  position: relative; color: #fff; overflow: hidden;
  min-height: calc(100vh - 79px);
  min-height: calc(100svh - 79px);
  display: flex; align-items: center;
  background-color: var(--navy);
}
/* The hero photo is a real <img> (srcset/WebP) injected by the build from --hero-img. */
.hero-pic { display: contents; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--hero-pos, center); z-index: 0; }
.hero::before { z-index: 1; }
.hero > .wrap, .hero .scroll-cue { z-index: 2; }
picture { display: contents; }
.hero > .wrap { width: 100%; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(4,20,45,.94) 0%, rgba(4,32,69,.78) 45%, rgba(4,32,69,.35) 100%),
    linear-gradient(0deg, rgba(15,24,44,.65), transparent 40%);
}
.hero .wrap { position: relative; padding-top: 64px; padding-bottom: 96px; }
.hero-inner { max-width: 680px; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: italic; color: var(--gold-soft); font-weight: 500; }
.hero .lead { font-size: 1.2rem; color: rgba(255,255,255,.88); max-width: 580px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }

.eyebrow {
  display: inline-block; font-family: var(--sans); font-size: .76rem; font-weight: 700; letter-spacing: .3em;
  text-transform: uppercase; color: var(--gold-deep); margin-bottom: 14px;
}
.hero .eyebrow, .dark .eyebrow, .ink .eyebrow { color: var(--gold); }

.rule { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 6px auto 26px; color: var(--gold); }
.rule::before, .rule::after { content: ""; width: 56px; height: 1px; background: currentColor; opacity: .7; }
.rule span { width: 8px; height: 8px; transform: rotate(45deg); border: 1px solid currentColor; }
.hero .rule, .rule.left { justify-content: flex-start; margin-left: 0; }

/* ---------- Sections ---------- */
.section { padding: clamp(70px, 9vw, 110px) 0; }
.section.white { background: var(--paper); }
.section.dark { background: var(--navy); color: rgba(255,255,255,.86); }
.section.dark h2, .section.dark h3 { color: #fff; }
.section.ink { background: var(--ink); color: rgba(255,255,255,.86); }
.section.ink h2, .section.ink h3 { color: #fff; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 50px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.dark .section-head p, .ink .section-head p { color: rgba(255,255,255,.75); }

.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.split.flip > :first-child { order: 2; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split.flip > :first-child { order: 0; }
  .split .text { text-align: center; }
  .split .text .rule.left { justify-content: center; margin-left: auto; }
  .split .text .ticks { text-align: left; display: inline-block; }
}

.photo-frame { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3; background: var(--navy); }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.photo-frame.logo img { object-fit: contain; }
.photo-frame::after { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(230,201,138,.45); border-radius: calc(var(--radius) - 6px); pointer-events: none; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.cards.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .cards.four { grid-template-columns: repeat(2, 1fr); } .cards { gap: 18px; } }
@media (max-width: 760px) { .cards:not(.two):not(.four) { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; } }
@media (max-width: 620px) { .cards.two, .cards.four { grid-template-columns: 1fr; } }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; box-shadow: 0 1px 2px rgba(4,32,69,.04);
  position: relative; transition: border-color .2s, transform .2s, box-shadow .2s;
}
.card:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: var(--shadow); }
.card::before { content: ""; position: absolute; left: 28px; right: 28px; top: 0; height: 3px; background: linear-gradient(90deg, var(--navy), var(--gold)); border-radius: 0 0 3px 3px; }
.card h3 { margin-bottom: .35em; }
.card p:last-child { margin-bottom: 0; }
.card .num { font-family: var(--serif); font-size: 2.6rem; color: var(--gold-deep); line-height: 1; margin-bottom: 10px; }
.card .stat { font-size: .9rem; color: var(--muted); border-top: 1px solid var(--line); margin-top: 18px; padding-top: 14px; }
.dark .card, .ink .card { background: rgba(255,255,255,.04); border-color: rgba(230,201,138,.22); color: rgba(255,255,255,.85); }
.dark .card h3, .ink .card h3 { color: #fff; }
.dark .card .stat { color: rgba(255,255,255,.7); border-color: rgba(255,255,255,.12); }

.mono {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 18px;
  font-family: var(--serif); font-size: 1.5rem; font-weight: 600; color: var(--gold-soft);
  background: linear-gradient(145deg, var(--navy), var(--navy-2)); box-shadow: inset 0 0 0 1px rgba(230,201,138,.5);
}

/* Lists */
.ticks { list-style: none; padding: 0; margin: 0 0 1.2em; }
.ticks li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 9px; height: 9px; transform: rotate(45deg); border: 1.5px solid var(--gold-deep); }
.dark .ticks li::before, .ink .ticks li::before { border-color: var(--gold); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chips span, .chips a { border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 8px 18px; font-size: .95rem; color: var(--text); text-decoration: none; transition: border-color .2s, color .2s; }
.chips a:hover { border-color: var(--gold); color: var(--navy); }
.card a.more { display: inline-block; margin-top: 12px; font-weight: 700; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; color: var(--navy-2); }
.card a.more::after { content: " \2192"; }
.card a.more:hover { color: var(--gold-deep); }
.num-sub { font-size: .55em; color: var(--muted); }
.cards.uses { grid-template-columns: repeat(4, 1fr); }
.cards.uses .card { padding: 28px 24px; scroll-margin-top: 110px; }
.cards.uses .card:target { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,154,62,.35); }
@media (max-width: 1060px) { .cards.uses { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cards.uses { grid-template-columns: 1fr; } }

/* Session strip */
.sessions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid rgba(230,201,138,.3); border-radius: var(--radius); overflow: hidden; }
.sessions div { padding: 28px 26px; text-align: center; }
.sessions div + div { border-left: 1px solid rgba(230,201,138,.3); }
.sessions h3 { margin-bottom: .2em; }
.sessions p { margin: 0; color: rgba(255,255,255,.75); font-size: .95rem; }
@media (max-width: 700px) { .sessions { grid-template-columns: 1fr; } .sessions div + div { border-left: 0; border-top: 1px solid rgba(230,201,138,.3); } }

/* Scroll cue at the foot of each hero */
.scroll-cue { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); color: rgba(255,255,255,.7); text-decoration: none; font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.scroll-cue::after { content: ""; width: 1px; height: 34px; background: linear-gradient(var(--gold), transparent); }
.scroll-cue:hover { color: var(--gold-soft); }

/* Photo cards */
.card.photo { padding: 0; overflow: hidden; }
.card.photo::before { z-index: 1; }
.card.photo img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; object-position: var(--pos, center); }
.card.photo .body { padding: 26px 26px 28px; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 14px; }
.gallery figure { margin: 0; border-radius: 12px; overflow: hidden; position: relative; background: var(--navy); }
.gallery figure.wide { grid-column: span 2; }
.gallery figure.tall { grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 16px 12px; color: #fff; font-size: .85rem; background: linear-gradient(transparent, rgba(4,20,45,.8)); }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; } }
@media (max-width: 520px) { .gallery { grid-template-columns: 1fr; } .gallery figure.wide, .gallery figure.tall { grid-column: auto; grid-row: auto; } }

/* Lodges that meet here */
.lodge-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 960px) { .lodge-list { grid-template-columns: 1fr; max-width: 620px; margin: 0 auto; } }
.lodge-list .card { text-align: center; }
.lodge-list .no { font-size: .76rem; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-deep); font-weight: 700; }
.lodge-list .when { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 14px; font-size: .93rem; color: var(--muted); }
.lodge-list a.more { display: inline-block; margin-top: 12px; font-weight: 700; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; }
.orders { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin-top: 34px; color: var(--muted); font-size: .95rem; }
.orders b { color: var(--navy); font-weight: 700; }

/* Notice */
.notice {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--gold);
  border-radius: 10px; padding: 22px 24px; max-width: 820px; margin: 0 auto;
}
.notice strong { font-family: var(--serif); font-size: 1.35rem; color: var(--navy); display: block; margin-bottom: 4px; }
.notice p { margin: 0; color: var(--muted); }

/* Widget panels */
.widget-panel {
  background: var(--paper); border-radius: 18px; box-shadow: var(--shadow); border: 1px solid var(--line);
  padding: clamp(14px, 3vw, 28px); position: relative; overflow: hidden;
}
.widget-panel::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--navy), var(--gold)); }
[data-tylerhq] { min-height: 120px; }
[data-tylerhq]:empty {
  display: grid; place-items: center; min-height: 260px; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted);
}
[data-tylerhq]:empty::before { content: "Loading…"; font-size: .95rem; letter-spacing: .05em; }
[data-tylerhq] iframe { display: block; width: 100%; border: 0; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; transition: border-color .2s; }
.faq details[open], .faq details:hover { border-color: var(--gold); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 56px 20px 24px; font-family: var(--serif); font-size: 1.3rem; font-weight: 600; color: var(--navy); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 24px; top: 50%; transform: translateY(-50%); font-family: var(--sans); font-size: 1.5rem; color: var(--gold-deep); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 24px 18px; color: var(--muted); }

/* CTA band */
.cta-band { text-align: center; position: relative; overflow: hidden; }
.cta-band .crest-bg { position: absolute; right: -60px; bottom: -80px; width: 360px; opacity: .07; pointer-events: none; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 26px; }

/* Map */
.map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); aspect-ratio: 4 / 3; background: #dfe3ea; }
.map iframe { width: 100%; height: 100%; border: 0; }
.map-consent { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; padding: 24px; background: linear-gradient(160deg, #eef1f6, #dfe5ee); }
.map-consent p { margin: 0; }
.map-consent .btn { margin: 14px 0 10px; }
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.info-list li:last-child { border-bottom: 0; }
.info-list b { display: block; font-size: .76rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 2px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.72); padding: 70px 0 30px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-grid h2.footer-h { font-family: var(--sans); font-size: .76rem; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 8px; }
.site-footer a { color: rgba(255,255,255,.82); text-decoration: none; }
.site-footer a:hover { color: var(--gold-soft); }
.site-footer address { font-style: normal; margin: 0 0 10px; color: rgba(255,255,255,.82); }
.mt-sm { margin-top: 22px; }
.footer-brand { display: flex; gap: 16px; align-items: center; margin-bottom: 14px; }
.footer-brand img { width: 70px; height: 70px; }
.footer-brand strong { font-family: var(--serif); font-size: 1.5rem; color: #fff; letter-spacing: .05em; text-transform: uppercase; font-weight: 600; display: block; line-height: 1.1; }
.footer-brand small { color: var(--gold); letter-spacing: .25em; text-transform: uppercase; font-size: .7rem; }
main p a, main li a, .legal td a { text-decoration: underline; text-underline-offset: 2px; }
.footer-base a { text-decoration: underline; text-underline-offset: 2px; }
.footer-base { border-top: 1px solid rgba(255,255,255,.1); margin-top: 50px; padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .85rem; color: rgba(255,255,255,.5); }
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; text-align: center; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .footer-brand { justify-content: center; }
  .footer-base { justify-content: center; text-align: center; }
}
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* Utility */
.center { text-align: center; }
.mt-lg { margin-top: 48px; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

/* Legal pages (privacy, cookies) */
.legal { max-width: 780px; margin: 0 auto; }
.legal .updated { color: var(--muted); font-size: .9rem; }
.legal h2 { font-size: 1.9rem; margin-top: 2em; padding-top: .6em; border-top: 1px solid var(--line); }
.legal h2:first-of-type { margin-top: 1.2em; }
.legal h3 { font-size: 1.3rem; margin-top: 1.4em; }
.legal ul { padding-left: 1.2em; margin: 0 0 1.1em; }
.legal li { margin-bottom: .45em; }
.legal .summary { background: var(--cream); border-left: 4px solid var(--gold); border-radius: 10px; padding: 18px 22px; }
.legal .summary p:last-child { margin: 0; }
.table-wrap { overflow-x: auto; margin: 0 0 1.4em; border: 1px solid var(--line); border-radius: 12px; }
.legal table { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 560px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.legal th { background: var(--cream); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--navy); }
.legal tr:last-child td { border-bottom: 0; }
.legal code { font-size: .86em; background: var(--cream); padding: 1px 6px; border-radius: 4px; word-break: break-all; }

/* Cookie notice */
.cookie-notice {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; margin: 0 auto; max-width: 760px;
  display: flex; align-items: center; gap: 18px; padding: 16px 20px;
  background: var(--ink); color: rgba(255,255,255,.88); border: 1px solid rgba(201,154,62,.4); border-radius: 14px;
  box-shadow: 0 18px 40px -12px rgba(0,0,0,.5); font-size: .92rem; line-height: 1.5;
}
.cookie-notice[hidden] { display: none; }
.cookie-notice p { margin: 0; flex: 1; }
.cookie-notice a { color: var(--gold-soft); }
.cookie-notice .btn { padding: 10px 22px; flex-shrink: 0; }
@media (max-width: 560px) { .cookie-notice { flex-direction: column; align-items: stretch; text-align: center; } }
