:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --text: #172033;
  --muted: #667085;
  --line: #d8dee8;
  --blue: #2f66e0;
  --blue-dark: #234fae;
  --shadow: 0 22px 56px rgba(27, 41, 69, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.62; }
a { color: inherit; }
button, select { font: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; left: 16px; top: -80px; padding: 12px 18px; border-radius: 12px; background: #111827; color: white; text-decoration: none; }
.skip-link:focus { top: 16px; }
.legal-container { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }

.legal-header { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid rgba(213, 219, 229, .85); background: rgba(245, 247, 251, .92); backdrop-filter: blur(18px); }
.legal-header__inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.legal-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.legal-brand__mark { width: 34px; height: 34px; padding: 7px; border-radius: 10px; display: grid; gap: 3px; background: #172033; transform: rotate(-3deg); }
.legal-brand__mark i { display: block; height: 4px; border-radius: 99px; background: white; }
.legal-brand__mark i:nth-child(1) { width: 100%; }
.legal-brand__mark i:nth-child(2) { width: 72%; }
.legal-brand__mark i:nth-child(3) { width: 48%; }
.legal-brand strong { display: block; font-size: 15px; line-height: 1; letter-spacing: .11em; }
.legal-brand small { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; }
.legal-header__actions { display: flex; align-items: center; gap: 10px; }
.legal-language select { height: 42px; min-width: 126px; padding: 0 42px 0 13px; border: 1px solid var(--line); border-radius: 12px; appearance: none; -webkit-appearance: none; background-color: white; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='M3 5.25 7 9l4-3.75' fill='none' stroke='%23667085' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 14px; color: #344054; cursor: pointer; }
.legal-button { min-height: 42px; display: inline-flex; align-items: center; padding: 0 17px; border-radius: 12px; background: #172033; color: white; font-size: 14px; font-weight: 750; text-decoration: none; }

.legal-main { padding: 66px 0 90px; }
.legal-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 46px; align-items: start; }
.legal-sidebar { position: sticky; top: 108px; }
.legal-sidebar__label { margin: 0 0 12px; color: #98a2b3; font-size: 11px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.legal-sidebar nav { display: grid; gap: 6px; }
.legal-sidebar nav a { padding: 11px 13px; border-radius: 10px; color: #475467; font-size: 14px; font-weight: 700; text-decoration: none; }
.legal-sidebar nav a:hover { background: #eaf0ff; color: var(--blue-dark); }
.legal-sidebar nav a.is-active { background: #dfe9ff; color: var(--blue-dark); }
.legal-operator-card { margin-top: 26px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.legal-operator-card span, .legal-operator-card small { display: block; color: var(--muted); font-size: 11px; }
.legal-operator-card strong { display: block; margin: 6px 0 2px; font-size: 15px; }
.legal-operator-card a { display: inline-block; margin-top: 10px; color: var(--blue-dark); font-size: 12px; font-weight: 700; }

.legal-document { padding: clamp(28px, 5vw, 60px); border: 1px solid rgba(211, 218, 229, .9); border-radius: 28px; background: white; box-shadow: var(--shadow); }
.legal-eyebrow { margin: 0 0 12px; color: var(--blue); font-size: 11px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.legal-document h1 { margin: 0; font-size: clamp(36px, 5vw, 58px); line-height: 1.05; letter-spacing: -.045em; }
.legal-lead { max-width: 780px; margin: 22px 0 0; color: #556174; font-size: 18px; }
.legal-meta { display: flex; flex-wrap: wrap; gap: 12px 32px; margin: 30px 0 40px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.legal-meta span { display: grid; gap: 2px; }
.legal-meta b { color: #98a2b3; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.legal-meta em, .legal-meta a { color: #344054; font-size: 13px; font-style: normal; font-weight: 700; }
.legal-section + .legal-section { margin-top: 38px; }
.legal-section h2 { margin: 0 0 13px; font-size: 22px; line-height: 1.25; letter-spacing: -.02em; }
.legal-section p { margin: 0 0 13px; color: #4b5565; }
.legal-section ul { margin: 12px 0 15px; padding-left: 22px; color: #4b5565; }
.legal-section li + li { margin-top: 8px; }
.legal-section a { color: var(--blue-dark); font-weight: 700; text-underline-offset: 3px; }
.legal-callout { margin-top: 18px; padding: 16px 18px; border: 1px solid #cfdcff; border-radius: 14px; background: #f0f5ff; color: #354868; }

.legal-footer { border-top: 1px solid var(--line); background: white; }
.legal-footer__inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 12px; }

@media (max-width: 820px) {
  .legal-main { padding-top: 34px; }
  .legal-layout { grid-template-columns: 1fr; gap: 22px; }
  .legal-sidebar { position: static; }
  .legal-sidebar nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .legal-operator-card { display: none; }
}

@media (max-width: 620px) {
  .legal-container { width: min(100% - 24px, 1160px); }
  .legal-header__inner { min-height: 68px; }
  .legal-brand small { display: none; }
  .legal-language select { min-width: 104px; max-width: 116px; padding-right: 38px; background-position: right 12px center; }
  .legal-button { display: none; }
  .legal-sidebar nav { grid-template-columns: 1fr; }
  .legal-document { padding: 25px 20px; border-radius: 20px; }
  .legal-document h1 { font-size: 34px; }
  .legal-lead { font-size: 16px; }
  .legal-footer__inner { min-height: 98px; flex-direction: column; justify-content: center; align-items: flex-start; gap: 4px; }
}
