/* ─── Variables ────────────────────────────────────────────────── */
:root {
  --bg:           #ffffff;
  --surface:      #F8F9FA;
  --border:       #EAEAEA;
  --text:         #1A1A2E;
  --muted:        #666677;
  --accent:       #E8234A;
  --accent-dark:  #C41A3C;
  --accent-light: rgba(232, 35, 74, .08);
  --danger:       #dc3545;
  --radius:       8px;
  --max-width:    860px;
}

/* ─── Reset ────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; }

/* ─── Topbar ────────────────────────────────────────────────────── */
.topbar {
  background: var(--accent);
  color: #fff;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -.3px;
  color: #fff;
  text-decoration: none;
}
.brand:hover { text-decoration: none; opacity: .9; }
.brand img { width: 28px; height: 28px; border-radius: 6px; }

.topbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.topbar nav a {
  color: rgba(255,255,255,.8);
  text-decoration: none;
  font-size: 14px;
  margin-left: 20px;
  transition: color .15s;
}
.topbar nav a:hover,
.topbar nav a.active { color: #fff; text-decoration: none; }

.lang-switcher {
  display: flex;
  gap: 4px;
  align-items: center;
}
.lang-switcher a {
  color: rgba(255,255,255,.7);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,.3);
  transition: all .15s;
}
.lang-switcher a.active,
.lang-switcher a:hover {
  background: rgba(255,255,255,.2);
  color: #fff;
  border-color: rgba(255,255,255,.55);
  text-decoration: none;
}

/* ─── Hero ──────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fff;
  padding: 64px 24px 48px;
  text-align: center;
}
.hero h1 {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -.5px;
}
.hero .subtitle {
  font-size: 16px;
  opacity: .85;
  margin-bottom: 20px;
}
.hero .badge {
  display: inline-block;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 13px;
  font-weight: 500;
}

/* ─── Warning banner ────────────────────────────────────────────── */
.warning-banner {
  background: #fff3cd;
  border-left: 4px solid #f59e0b;
  padding: 14px 24px;
  font-size: 14px;
  color: #92400e;
}
.warning-banner strong {
  display: block;
  margin-bottom: 2px;
}

/* ─── Container ─────────────────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 24px;
}

/* ─── Table of contents ─────────────────────────────────────────── */
.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 48px;
}
.toc h2 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: 12px;
  border: none;
  padding: 0;
}
.toc ol { padding-left: 20px; }
.toc li { margin-bottom: 6px; }
.toc a { color: var(--accent); text-decoration: none; font-size: 15px; }
.toc a:hover { text-decoration: underline; }

/* ─── Sections ──────────────────────────────────────────────────── */
section {
  margin-bottom: 48px;
  scroll-margin-top: 72px;
}

h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent-light);
  margin-bottom: 16px;
}
h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--accent);
  margin: 24px 0 10px;
}

p { margin-bottom: 14px; color: var(--text); }
ul, ol { padding-left: 22px; margin-bottom: 14px; }
li { margin-bottom: 6px; }

/* ─── Callouts ──────────────────────────────────────────────────── */
.callout {
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 20px;
  font-size: 15px;
}
.callout.warning {
  background: #fff3cd;
  border-left: 4px solid #f59e0b;
  color: #78350f;
}
.callout.info {
  background: var(--accent-light);
  border-left: 4px solid var(--accent);
  color: var(--text);
}
.callout.danger {
  background: #fef2f2;
  border-left: 4px solid var(--danger);
  color: #7f1d1d;
}
.callout strong {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* ─── Contact card ──────────────────────────────────────────────── */
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-top: 16px;
}
.contact-card p { margin: 0 0 4px; }
.contact-card a { color: var(--accent); }

/* ─── Rights grid ───────────────────────────────────────────────── */
.rights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.right-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 14px;
}
.right-item strong {
  display: block;
  color: var(--accent);
  margin-bottom: 2px;
  font-size: 15px;
}

/* ─── Footer ────────────────────────────────────────────────────── */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}
footer a { color: var(--accent); text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* ─── Responsive ────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .topbar nav { display: none; }
  .hero { padding: 40px 16px 32px; }
  .container { padding: 32px 16px; }
  .rights-grid { grid-template-columns: 1fr; }
}
