:root {
  --navy: #062a4d;
  --navy-2: #0a3d68;
  --blue: #0d82b8;
  --cyan: #28c7dc;
  --ink: #13283a;
  --muted: #5c7083;
  --line: #d9e5ec;
  --mist: #eef6f8;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(6, 42, 77, .1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #f7fafb;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy); }
img { display: block; max-width: 100%; }
.shell { width: min(1440px, calc(100% - 40px)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { width: 188px; height: auto; }
.back-link { color: var(--navy); font-weight: 720; text-decoration: none; }
.back-link:hover { color: var(--blue); }

.legal-hero {
  padding: 76px 0 52px;
  color: white;
  background:
    radial-gradient(circle at 85% 10%, rgba(40,199,220,.28), transparent 34%),
    linear-gradient(135deg, var(--navy), var(--navy-2));
}
.eyebrow { display: block; margin-bottom: 12px; color: #82e3ed; font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.legal-hero h1 { max-width: 800px; margin: 0; font-size: clamp(2.2rem, 5vw, 4.2rem); line-height: 1.08; letter-spacing: -.035em; }
.legal-hero p { max-width: 720px; margin: 20px 0 0; color: #d8e8f0; font-size: 1.08rem; }

.legal-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 54px; padding: 54px 0 80px; align-items: start; }
.legal-nav { position: sticky; top: 108px; display: grid; gap: 8px; }
.legal-nav strong { margin-bottom: 6px; color: var(--navy); }
.legal-nav a { padding: 7px 0; color: var(--muted); text-decoration: none; }
.legal-nav a:hover { color: var(--blue); }
.legal-card { min-width: 0; padding: clamp(28px, 5vw, 58px); border: 1px solid var(--line); border-radius: 24px; background: white; box-shadow: var(--shadow); overflow-wrap: anywhere; }
.legal-card section + section { margin-top: 38px; padding-top: 38px; border-top: 1px solid var(--line); }
.legal-card h2 { margin: 0 0 14px; color: var(--navy); font-size: clamp(1.35rem, 2.5vw, 1.75rem); line-height: 1.25; }
.legal-card h3 { margin: 26px 0 10px; color: var(--navy); font-size: 1.05rem; }
.legal-card p { margin: 0 0 14px; }
.legal-card ul { margin: 10px 0 14px; padding-left: 22px; }
.legal-card li + li { margin-top: 7px; }
.legal-card address { font-style: normal; }
.legal-note { padding: 18px 20px; border-left: 4px solid var(--cyan); border-radius: 0 12px 12px 0; background: var(--mist); }
.legal-table-wrap { overflow-x: auto; margin: 18px 0; }
.legal-table { width: 100%; min-width: 620px; border-collapse: collapse; }
.legal-table th, .legal-table td { padding: 13px 14px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.legal-table th { color: var(--navy); background: var(--mist); }
.updated { margin-top: 34px; color: var(--muted); font-size: .9rem; }

footer { padding: 34px 0; color: #dceaf3; background: var(--navy); }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer-row p { margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px 22px; }
.footer-links a { color: white; }

@media (max-width: 880px) {
  .shell { width: min(100% - 40px, 1440px); }
  .nav { min-height: 68px; }
  .brand img { width: 160px; }
  .back-link { font-size: .92rem; }
  .legal-hero { padding: 54px 0 40px; }
  .legal-layout { grid-template-columns: 1fr; gap: 24px; padding: 32px 0 54px; }
  .legal-nav { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: white; }
  .legal-nav strong { grid-column: 1 / -1; }
  .legal-card { padding: 24px 20px; border-radius: 18px; }
  .legal-table-wrap { overflow: visible; }
  .legal-table { min-width: 0; border: 0; }
  .legal-table thead { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
  .legal-table tbody, .legal-table tr, .legal-table td { display: block; width: 100%; }
  .legal-table tr { margin-bottom: 14px; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: white; }
  .legal-table td { padding: 13px 14px; border: 0; }
  .legal-table td + td { border-top: 1px solid var(--line); }
  .legal-table td::before { content: attr(data-label); display: block; margin-bottom: 4px; color: var(--navy); font-size: .82rem; font-weight: 800; }
  .footer-row { align-items: flex-start; flex-direction: column; }
  .footer-links { justify-content: flex-start; }
}

@media (max-width: 460px) {
  .legal-nav { grid-template-columns: 1fr; }
  .legal-nav strong { grid-column: auto; }
  .back-link { max-width: 120px; text-align: right; line-height: 1.25; }
}

.legal-layout { grid-template-columns:220px minmax(0,900px); justify-content:center; }
@media(max-width:880px) { .legal-layout { grid-template-columns:minmax(0,1fr); } }
:focus-visible { outline:3px solid var(--blue); outline-offset:4px; }
