:root {
  --navy: #03246f;
  --blue: #055ece;
  --cyan: #00dff5;
  --green: #0e8951;
  --ink: #071b3c;
  --text: #405772;
  --muted: #687d95;
  --line: #dbe5ef;
  --soft: #f4f8fc;
  --blue-soft: #eaf4ff;
  --green-soft: #e9f8f1;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 18px; scroll-behavior: smooth; }
html[data-font-size="large"] { font-size: 21px; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 92% 4%, rgba(5, 94, 206, .1), transparent 25rem),
    #f8fafc;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }

.legal-header {
  position: sticky;
  z-index: 20;
  top: 0;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.13);
  background: rgba(3,36,111,.97);
  box-shadow: 0 8px 30px rgba(3, 24, 67, .14);
  backdrop-filter: blur(14px);
}

.legal-header-inner {
  display: flex;
  width: min(1100px, calc(100% - 40px));
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-inline: auto;
}

.legal-brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-size: 1.12rem; font-weight: 850; text-decoration: none; }
.legal-brand img { width: 34px; height: 34px; }
.legal-tools { display: flex; align-items: center; gap: 13px; }
.legal-back { color: #e3efff; font-size: .84rem; font-weight: 720; text-decoration: none; }
.legal-back:hover { text-decoration: underline; }

.font-size-control { display: inline-flex; padding: 3px; border: 1px solid rgba(255,255,255,.32); border-radius: 10px; }
.font-size-control button { min-width: 40px; height: 40px; padding: 0 7px; color: #dcecff; border: 0; border-radius: 7px; background: transparent; cursor: pointer; font-size: .76rem; font-weight: 850; }
.font-size-control button:last-child { font-size: .94rem; }
.font-size-control button.active { color: var(--navy); background: #fff; }

.legal-shell { width: min(900px, calc(100% - 40px)); margin: 0 auto; padding: 64px 0 100px; }
.legal-eyebrow { color: var(--blue); font-size: .76rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
h1, h2, h3 { color: var(--ink); line-height: 1.18; letter-spacing: -.025em; }
h1 { max-width: 18ch; margin: 10px 0 8px; font-size: clamp(2.25rem, 6vw, 3.55rem); }
.updated { display: block; color: var(--muted); font-size: .84rem; }
.legal-lead { margin: 28px 0 0; color: #334b67; font-size: 1.08rem; line-height: 1.72; }
.legal-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 34px 0 48px; }
.legal-summary div { padding: 17px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.legal-summary strong { display: block; color: var(--ink); font-size: .9rem; }
.legal-summary span { display: block; margin-top: 4px; color: var(--muted); font-size: .78rem; line-height: 1.5; }

.notice { margin: 30px 0; padding: 20px 22px; border-left: 4px solid var(--blue); border-radius: 10px; background: var(--blue-soft); }
.notice.warning { border-left-color: #d39a00; background: #fff8df; }
.notice.security { border-left-color: var(--green); background: var(--green-soft); }
.notice p { margin: 0; }

.legal-section { padding: 34px 0 4px; border-top: 1px solid var(--line); }
.legal-section h2 { margin: 0 0 14px; font-size: 1.35rem; }
.legal-section h3 { margin: 24px 0 8px; font-size: 1rem; }
p { margin: 0 0 15px; }
ul, ol { margin: 10px 0 18px; padding-left: 1.4rem; }
li { margin-bottom: 8px; }

.data-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; margin: 18px 0 22px; }
.data-card { padding: 19px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.data-card h3 { margin: 0 0 8px; }
.data-card p { margin: 0; color: var(--muted); font-size: .87rem; }

.legal-table-wrap { margin: 20px 0; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
table { width: 100%; min-width: 700px; border-collapse: collapse; font-size: .84rem; }
th, td { padding: 14px 15px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--ink); background: var(--soft); font-size: .76rem; letter-spacing: .03em; text-transform: uppercase; }
tr:last-child td { border-bottom: 0; }

.contact-box { margin-top: 42px; padding: 25px; color: #fff; border-radius: 16px; background: linear-gradient(135deg, var(--navy), var(--blue)); }
.contact-box h2 { margin: 0 0 13px; color: #fff; }
.contact-box p, .contact-box li { color: #e6f0ff; }
.contact-box a { color: #fff; font-weight: 750; }

.legal-footer { padding: 28px 20px 90px; color: #b9cce3; background: var(--navy); text-align: center; font-size: .78rem; }
.legal-footer p { max-width: 900px; margin: 0 auto; }

@media (max-width: 700px) {
  html { font-size: 17px; }
  html[data-font-size="large"] { font-size: 20px; }
  .legal-header-inner { width: min(100% - 28px, 1100px); min-height: 70px; }
  .legal-tools { gap: 8px; }
  .legal-back { display: none; }
  .legal-shell { width: min(100% - 30px, 900px); padding-top: 44px; }
  .legal-summary, .data-grid { grid-template-columns: 1fr; }
  .legal-summary { gap: 9px; }
  .legal-section { padding-top: 28px; }
}

@media print {
  .legal-header, .font-size-control { display: none; }
  body { color: #000; background: #fff; }
  .legal-shell { width: 100%; padding: 0; }
  .legal-section, .data-card, .notice { break-inside: avoid; }
  .legal-footer { color: #000; background: #fff; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.legal-analytics-consent {
  position: fixed;
  z-index: 1000;
  right: 20px;
  bottom: 20px;
  left: 20px;
  display: flex;
  max-width: 900px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin: auto;
  padding: 20px 22px;
  border: 1px solid #dce5ef;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(4, 20, 47, 0.18);
}

.legal-analytics-consent strong { display: block; margin-bottom: 4px; color: #071b3c; }
.legal-analytics-consent p { max-width: 610px; color: #465c78; font-size: .9rem; line-height: 1.55; }
.legal-analytics-consent a { color: #055ece; font-weight: 750; text-decoration: underline; }
.legal-analytics-actions { display: flex; flex: 0 0 auto; gap: 10px; }
.legal-analytics-actions button {
  min-height: 48px;
  padding: 11px 18px;
  border: 1px solid #dce5ef;
  border-radius: 12px;
  cursor: pointer;
  color: #071b3c;
  background: #fff;
  font: inherit;
  font-weight: 750;
}
.legal-analytics-actions .accept { border-color: #055ece; color: #fff; background: #055ece; }
.legal-preferences-button { margin-top: 10px; border: 0; cursor: pointer; color: inherit; background: transparent; font: inherit; text-decoration: underline; }

@media (max-width: 720px) {
  .legal-analytics-consent { bottom: 12px; flex-direction: column; align-items: stretch; gap: 16px; padding: 18px; }
  .legal-analytics-actions button { flex: 1; }
}
