:root {
  --gm-navy: #0a1a2f;
  --gm-blue: #0f5fba;
  --gm-gold: #d7a51e;
  --gm-border: #d9e0e8;
  --gm-muted: #526173;
  --gm-surface: #ffffff;
  --gm-soft: #f4f7fa;
}

.gm-cookie-banner {
  position: fixed;
  z-index: 9998;
  right: 20px;
  bottom: 20px;
  left: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 20px;
  border: 1px solid var(--gm-border);
  border-radius: 8px;
  background: var(--gm-surface);
  box-shadow: 0 14px 40px rgba(10, 26, 47, .2);
  color: var(--gm-navy);
  font: 15px/1.5 "Segoe UI", Arial, sans-serif;
}

.gm-cookie-banner[hidden] { display: none; }
.gm-cookie-copy { max-width: 690px; }
.gm-cookie-copy strong { display: block; margin-bottom: 2px; font-size: 17px; }
.gm-cookie-copy p { margin: 0 0 3px; color: var(--gm-muted); }
.gm-cookie-copy a, .gm-cookie-dialog a { color: var(--gm-blue); font-weight: 700; }

.gm-cookie-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.gm-button {
  min-height: 42px;
  padding: 9px 15px;
  border: 1px solid var(--gm-navy);
  border-radius: 6px;
  font: 700 14px/1.2 "Segoe UI", Arial, sans-serif;
  cursor: pointer;
}
.gm-button:focus-visible, .gm-cookie-close:focus-visible, .gm-switch input:focus-visible + span {
  outline: 3px solid #6cb5ff;
  outline-offset: 2px;
}
.gm-button-primary { border-color: var(--gm-gold); background: var(--gm-gold); color: var(--gm-navy); }
.gm-button-secondary { background: var(--gm-surface); color: var(--gm-navy); }
.gm-button:hover { filter: brightness(.95); }

.gm-cookie-dialog {
  width: min(660px, calc(100% - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: var(--gm-surface);
  color: var(--gm-navy);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .3);
  font: 15px/1.5 "Segoe UI", Arial, sans-serif;
}
.gm-cookie-dialog::backdrop { background: rgba(4, 14, 28, .72); }
.gm-cookie-panel { padding: 24px; }
.gm-cookie-dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.gm-cookie-dialog-head span { color: var(--gm-blue); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.gm-cookie-dialog h2 { margin: 2px 0 0; font-size: 26px; }
.gm-cookie-close { width: 40px; height: 40px; border: 0; background: transparent; color: var(--gm-navy); font-size: 28px; cursor: pointer; }
.gm-cookie-option {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 16px 0;
  border-top: 1px solid var(--gm-border);
}
.gm-cookie-option strong, .gm-cookie-option small { display: block; }
.gm-cookie-option small { margin-top: 3px; color: var(--gm-muted); }
.gm-switch { display: grid; grid-template-columns: 42px; justify-items: center; gap: 3px; cursor: pointer; }
.gm-switch input { position: absolute; opacity: 0; }
.gm-switch span { position: relative; width: 42px; height: 24px; border-radius: 999px; background: #aab4c0; }
.gm-switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .18s; }
.gm-switch input:checked + span { background: var(--gm-blue); }
.gm-switch input:checked + span::after { transform: translateX(18px); }
.gm-switch input:disabled + span { background: #536173; }
.gm-switch b { font-size: 11px; white-space: nowrap; }
.gm-cookie-dialog-links { display: flex; flex-wrap: wrap; gap: 16px; padding-top: 14px; border-top: 1px solid var(--gm-border); }
.gm-cookie-dialog-actions { margin-top: 22px; }

.footer-link-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.footer-link-button:hover { text-decoration: underline; }

.legal-page { margin: 0; background: var(--gm-soft); color: var(--gm-navy); font: 16px/1.65 "Segoe UI", Arial, sans-serif; }
.legal-header { background: var(--gm-navy); color: #fff; }
.legal-nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 16px 0; }
.legal-logo img { display: block; width: 190px; height: auto; }
.legal-back { color: #fff; font-weight: 700; text-decoration: none; }
.legal-main { width: min(920px, calc(100% - 40px)); margin: 0 auto; padding: 54px 0 72px; }
.legal-kicker { color: var(--gm-blue); font-weight: 800; text-transform: uppercase; font-size: 13px; }
.legal-main h1 { max-width: 760px; margin: 6px 0 12px; font-size: clamp(32px, 5vw, 52px); line-height: 1.1; }
.legal-lead { max-width: 780px; margin: 0 0 32px; color: var(--gm-muted); font-size: 18px; }
.legal-updated { display: inline-block; margin-bottom: 30px; padding: 6px 10px; border-radius: 4px; background: #e4edf6; color: #26384d; font-size: 13px; font-weight: 700; }
.legal-section { padding: 26px 0; border-top: 1px solid var(--gm-border); }
.legal-section h2 { margin: 0 0 10px; font-size: 25px; }
.legal-section h3 { margin: 20px 0 5px; font-size: 18px; }
.legal-section p { margin: 8px 0; }
.legal-section ul { margin: 10px 0; padding-left: 22px; }
.legal-section li { margin: 6px 0; }
.legal-table { width: 100%; border-collapse: collapse; margin-top: 14px; background: #fff; }
.legal-table th, .legal-table td { padding: 12px; border: 1px solid var(--gm-border); text-align: left; vertical-align: top; }
.legal-table th { background: #eaf0f6; }
.legal-callout { margin: 18px 0; padding: 16px 18px; border-left: 4px solid var(--gm-gold); background: #fff; }
.legal-contact { padding: 20px; border: 1px solid var(--gm-border); border-radius: 8px; background: #fff; }
.legal-footer { padding: 24px 20px; background: var(--gm-navy); color: rgba(255, 255, 255, .8); text-align: center; }
.legal-footer a { color: #fff; }

@media (max-width: 760px) {
  .gm-cookie-banner { right: 10px; bottom: 10px; left: 10px; display: block; padding: 16px; }
  .gm-cookie-actions { justify-content: stretch; margin-top: 14px; }
  .gm-cookie-actions .gm-button { flex: 1 1 140px; }
  .gm-cookie-panel { padding: 19px; }
  .gm-cookie-option { align-items: start; gap: 12px; }
  .legal-nav { width: min(100% - 28px, 1120px); }
  .legal-logo img { width: 150px; }
  .legal-main { width: min(100% - 28px, 920px); padding-top: 38px; }
  .legal-table, .legal-table tbody, .legal-table tr, .legal-table th, .legal-table td { display: block; }
  .legal-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .legal-table tr { margin-bottom: 12px; border: 1px solid var(--gm-border); }
  .legal-table td { border: 0; border-bottom: 1px solid var(--gm-border); }
  .legal-table td::before { content: attr(data-label); display: block; margin-bottom: 2px; color: var(--gm-blue); font-size: 12px; font-weight: 800; text-transform: uppercase; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
