:root {
  color-scheme: light;
  --bg: #f7fbfd;
  --surface: #ffffff;
  --ink: #18364a;
  --muted: #5f7481;
  --line: #d7e7f0;
  --brand: #0178bc;
  --brand-dark: #3156a3;
  --brand-soft: #dfeef6;
  --amber: #8b4d0b;
  --amber-bg: #fff7ea;
  --amber-line: #efd0a6;
  --danger: #a62117;
  --danger-bg: #fff0ef;
  --danger-line: #efc1bd;
  --shadow: 0 12px 36px rgba(1, 92, 145, 0.09);
  --max: 1120px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 90% 0%, rgba(1, 120, 188, 0.10), transparent 28rem),
    var(--bg);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand-dark); text-underline-offset: 3px; }
a:hover { color: var(--brand); }
a:focus-visible { outline: 3px solid rgba(1, 120, 188, 0.35); outline-offset: 4px; border-radius: 4px; }

.skip-link { position: fixed; top: 10px; left: 10px; z-index: 10; max-width: calc(100vw - 20px); transform: translateY(-150%); padding: 8px 12px; border-radius: 8px; background: var(--ink); color: #fff; white-space: normal; }
.skip-link:focus { transform: none; }

.site-header {
  display: flex;
  width: min(calc(100% - 40px), var(--max));
  min-height: 88px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid var(--line);
}

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand-mark { display: grid; width: 46px; height: 46px; place-items: center; border-radius: 14px; background: var(--brand); color: #fff; box-shadow: 0 8px 22px rgba(1, 120, 188, 0.22); }
.brand-mark svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 18px; letter-spacing: -0.02em; }
.brand small { color: var(--muted); font-size: 12px; font-weight: 650; }

nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
nav a { padding: 8px 11px; border-radius: 9px; color: var(--muted); font-size: 14px; font-weight: 750; text-decoration: none; }
nav a:hover, nav a[aria-current="page"] { background: var(--brand-soft); color: var(--brand-dark); }
.language-control { display: grid; gap: 3px; color: var(--muted); font-size: 11px; font-weight: 750; }
.language-control select { min-width: 132px; padding: 8px 28px 8px 10px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: var(--surface); font: inherit; font-size: 13px; }

main { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; }
.hero { max-width: 830px; padding: 92px 0 64px; }
.eyebrow { margin: 0 0 10px; color: var(--brand); font-size: 13px; font-weight: 850; letter-spacing: 0.1em; }
h1, h2, h3 { color: var(--ink); line-height: 1.18; letter-spacing: -0.03em; overflow-wrap: anywhere; }
h1 { margin: 0 0 20px; font-size: clamp(2.5rem, 7vw, 4.9rem); }
.hero > p:not(.eyebrow) { max-width: 720px; margin: 0; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.3rem); line-height: 1.6; }
.notice { max-width: 720px; margin-top: 32px; padding: 18px 20px; border: 1px solid var(--amber-line); border-radius: 16px; background: var(--amber-bg); color: var(--amber); }
.notice p { margin: 3px 0 0; }

.section-heading { max-width: 680px; margin-bottom: 24px; }
.section-heading h2 { margin: 0; font-size: clamp(1.8rem, 4vw, 2.5rem); }
.document-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; padding-bottom: 88px; }
.document-card { display: block; min-height: 270px; padding: 28px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); color: inherit; text-decoration: none; box-shadow: var(--shadow); transition: transform 160ms ease, border-color 160ms ease; }
.document-card:hover { transform: translateY(-3px); border-color: #abd2e7; color: inherit; }
.card-icon { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 13px; background: var(--brand-soft); color: var(--brand); font-size: 13px; font-weight: 900; }
.document-card h3 { margin: 24px 0 8px; font-size: 24px; }
.document-card p { margin: 0; color: var(--muted); }
.card-link { display: inline-block; margin-top: 20px; color: var(--brand); font-size: 14px; font-weight: 800; }

.legal-layout { width: min(calc(100% - 40px), 820px); padding: 72px 0 96px; }
.article-header { margin-bottom: 36px; }
.article-header h1 { margin-bottom: 10px; font-size: clamp(2.4rem, 7vw, 4.2rem); }
.updated { margin: 0; color: var(--muted); font-size: 14px; }
.translation-notice { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: -12px 0 34px; padding: 16px 18px; border: 1px solid var(--amber-line); border-radius: 15px; background: var(--amber-bg); color: var(--amber); font-size: 14px; line-height: 1.5; }
.translation-notice p { margin: 0; }
.translation-notice a { flex: 0 0 auto; color: var(--amber); font-weight: 800; }
article > h2 { margin: 44px 0 12px; font-size: 25px; }
article > p, article li { color: #415e70; }
article ul, article ol { padding-inline-start: 25px; }
article li { margin: 8px 0; }
article address { padding: 18px 20px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); color: #415e70; font-style: normal; }

.summary-box, .emergency-box { margin: 32px 0 44px; padding: 24px 26px; border-radius: 20px; }
.summary-box { border: 1px solid #b8d8e9; background: var(--brand-soft); }
.summary-box h2, .emergency-box h2 { margin: 0 0 10px; font-size: 22px; }
.summary-box p, .emergency-box p { margin: 0; }
.warning-box { border-color: var(--amber-line); background: var(--amber-bg); }
.warning-box h2, .warning-box p { color: var(--amber); }
.emergency-box { border: 1px solid var(--danger-line); background: var(--danger-bg); }
.emergency-box h2, .emergency-box p { color: var(--danger); }
.check-list { margin: 0; padding: 0; list-style: none; }
.check-list li { position: relative; margin: 10px 0; padding-left: 28px; color: var(--ink); }
.check-list li::before { position: absolute; left: 0; content: "✓"; color: var(--brand); font-weight: 900; }
.contact-warning { padding: 14px 16px; border-left: 4px solid var(--amber-line); background: var(--amber-bg); color: var(--amber); }

.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 22px 0; }
.choice-card { padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.choice-card h3 { margin: 0 0 7px; font-size: 18px; }
.choice-card p { margin: 0; color: var(--muted); font-size: 15px; }

footer { display: flex; width: min(calc(100% - 40px), var(--max)); margin: 0 auto; padding: 28px 0 44px; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
footer p { margin: 0; }

@media (max-width: 760px) {
  .site-header { align-items: flex-start; flex-direction: column; padding: 20px 0 14px; gap: 14px; }
  nav { justify-content: flex-start; margin-left: -9px; }
  nav a { padding: 6px 9px; }
  .hero { padding: 64px 0 48px; }
  .document-grid, .choice-grid { grid-template-columns: 1fr; }
  .document-card { min-height: 0; }
  .legal-layout { padding-top: 52px; }
  .language-control { width: 100%; }
  .language-control select { width: 100%; }
  .translation-notice { align-items: flex-start; flex-direction: column; }
  footer { flex-direction: column; }
}

html[dir="rtl"] body { text-align: right; }
html[dir="rtl"] .check-list li { padding-right: 28px; padding-left: 0; }
html[dir="rtl"] .check-list li::before { right: 0; left: auto; }
html[dir="rtl"] .contact-warning { border-right: 4px solid var(--amber-line); border-left: 0; }
html[dir="rtl"] nav { justify-content: flex-start; }
html[dir="rtl"] .language-control select { padding-right: 10px; padding-left: 28px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .document-card { transition: none; }
}

@media print {
  body { background: #fff; font-size: 12pt; }
  .site-header nav, .skip-link { display: none; }
  .site-header, main, footer { width: 100%; }
  .legal-layout { padding: 30px 0; }
  a { color: inherit; }
}
