:root {
  color: #171717;
  background: #fff;
  font-family: Arial, Helvetica, sans-serif;
  --accent: #dd3f24;
  --muted: #626262;
  --line: #dedede;
  --soft: #f7f7f7;
}

* { box-sizing: border-box; }
html { min-width: 320px; }
body { min-width: 320px; margin: 0; color: #171717; }
a { color: var(--accent); text-underline-offset: 3px; }
button { font: inherit; cursor: pointer; }

.legal-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.97);
}

.legal-header-inner,
.legal-main,
.legal-footer-inner {
  width: min(100% - 36px, 780px);
  margin: 0 auto;
}

.legal-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 82px;
}

.legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #171717;
  font-weight: 800;
  letter-spacing: -0.035em;
  text-decoration: none;
}

.legal-brand svg { width: 38px; height: 38px; flex: 0 0 auto; }
.legal-brand rect { fill: #171717; }
.legal-brand path { fill: #fff; }
.legal-brand circle { fill: #ff5a3c; stroke: #fff; stroke-width: 3px; }

.language-switcher {
  display: flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.language-switcher button {
  min-width: 34px;
  height: 30px;
  padding: 0 8px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.language-switcher button.active { background: #171717; color: #fff; }
.legal-main { padding: 72px 0 88px; }
.legal-article[hidden] { display: none; }
.legal-kicker { margin: 0 0 10px; color: var(--accent); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; }
h1 { margin: 0 0 12px; font-size: clamp(2rem, 7vw, 3.5rem); letter-spacing: -0.055em; line-height: 1.05; }
.effective { margin: 0 0 46px; color: var(--muted); font-size: 0.9rem; }
h2 { margin: 38px 0 10px; font-size: 1.2rem; letter-spacing: -0.02em; }
p, li { color: #3c4043; font-size: 0.98rem; line-height: 1.72; }
ul { padding-inline-start: 22px; }
.legal-note { margin-top: 44px; padding: 16px 18px; border-inline-start: 4px solid #ff5a3c; background: #fff5f2; border-radius: 7px; }
.legal-footer { padding: 28px 0; border-top: 1px solid var(--line); background: var(--soft); }
.legal-footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; color: var(--muted); font-size: 0.82rem; }
.legal-owner { display: flex; flex-direction: column; gap: 5px; }
.legal-owner [data-label="createdBy"] { color: #3c4043; font-weight: 500; }
.policy-links { display: flex; flex-wrap: wrap; gap: 14px; }
.policy-links a { color: #5f6368; }
[dir="rtl"] .legal-article { text-align: right; }

@media (max-width: 560px) {
  .legal-header-inner { min-height: 72px; }
  .legal-brand span { display: none; }
  .legal-main { padding-top: 50px; }
  .legal-footer-inner { align-items: flex-start; flex-direction: column; }
}

:focus-visible { outline: 3px solid rgba(255, 90, 60, 0.35); outline-offset: 3px; }
