/* shared/legal.css — MEA Legal Portal */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #090C10;
  --bg-2:        #0D1117;
  --surface:     #111720;
  --surface-2:   #161D28;
  --border:      rgba(255,255,255,0.06);
  --border-2:    rgba(255,255,255,0.10);
  --text:        #F0F4F8;
  --text-2:      #8B99A8;
  --text-3:      #4A5568;
  --accent:      #00D4FF;
  --accent-dim:  rgba(0,212,255,0.08);
  --accent-glow: rgba(0,212,255,0.15);
  --green:       #22C55E;
  --green-dim:   rgba(34,197,94,0.08);
  --yellow:      #F59E0B;
  --yellow-dim:  rgba(245,158,11,0.08);
  --r:           10px;
  --r-lg:        14px;
  --font-mono:   'JetBrains Mono', 'Fira Code', monospace;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', 'Inter', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.75;
  min-height: 100dvh;
}

/* ── TOPBAR ─────────────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(9,12,16,0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px; height: 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.topbar-brand {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px; letter-spacing: 2px;
  color: var(--accent);
  text-decoration: none;
  filter: drop-shadow(0 0 8px var(--accent-glow));
  flex-shrink: 0;
}
.topbar-right { display: flex; align-items: center; gap: 12px; }

/* Lang toggle */
.lang-toggle {
  display: flex; align-items: center; gap: 2px;
  background: var(--surface); border: 1px solid var(--border-2);
  border-radius: 8px; padding: 3px;
}
.lang-btn {
  padding: 4px 10px; border-radius: 6px; border: none;
  font-size: 11px; font-weight: 700; letter-spacing: .06em;
  cursor: pointer; transition: all .15s ease;
  background: transparent; color: var(--text-3);
}
.lang-btn.active {
  background: var(--accent-dim);
  color: var(--accent);
}

/* ── BREADCRUMB ──────────────────────────────────────────────── */
.breadcrumb {
  padding: 14px 24px;
  font-size: 12px; color: var(--text-3);
  display: flex; align-items: center; gap: 6px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
}
.breadcrumb a { color: var(--text-3); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: var(--text-2); }

/* ── TABS ────────────────────────────────────────────────────── */
.tabs-wrap {
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
  padding: 0 24px;
  display: flex; gap: 0; overflow-x: auto;
  scrollbar-width: none;
}
.tabs-wrap::-webkit-scrollbar { display: none; }
.tab-item {
  padding: 14px 18px;
  font-size: 13px; font-weight: 600;
  color: var(--text-3);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: all .15s ease;
  display: flex; align-items: center; gap: 7px;
}
.tab-item:hover { color: var(--text-2); }
.tab-item.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.tab-icon { font-size: 14px; }

/* ── HERO ────────────────────────────────────────────────────── */
.hero {
  padding: 48px 24px 40px;
  max-width: 780px; margin: 0 auto;
}
.hero-eyebrow {
  font-size: 11px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 12px;
}
.hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(32px, 6vw, 52px);
  letter-spacing: .04em; line-height: 1.1;
  color: var(--text); margin-bottom: 12px;
}
.hero-sub {
  font-size: 14px; color: var(--text-3);
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.hero-sub .dot { color: var(--border-2); }

/* ── CONTENT ─────────────────────────────────────────────────── */
.content {
  max-width: 780px; margin: 0 auto;
  padding: 0 24px 80px;
}

/* Section */
.doc-section { margin-bottom: 48px; }
.doc-section-header {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.doc-num {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 700;
  letter-spacing: .1em;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 3px 8px; border-radius: 5px;
  flex-shrink: 0;
}
.doc-section h2 {
  font-size: 18px; font-weight: 700;
  color: var(--text); letter-spacing: -.01em;
}
.doc-section p {
  color: var(--text-2);
  margin-bottom: 12px; font-size: 14px;
}
.doc-section p:last-child { margin-bottom: 0; }
.doc-section h3 {
  font-size: 14px; font-weight: 700;
  color: var(--text); margin: 20px 0 8px;
}

/* Highlight box */
.highlight {
  background: var(--accent-dim);
  border: 1px solid rgba(0,212,255,0.15);
  border-left: 3px solid var(--accent);
  border-radius: var(--r); padding: 14px 16px;
  margin: 16px 0;
}
.highlight p { color: var(--text-2); font-size: 13px; margin: 0; }

/* Warning box */
.warning-box {
  background: var(--yellow-dim);
  border: 1px solid rgba(245,158,11,0.2);
  border-left: 3px solid var(--yellow);
  border-radius: var(--r); padding: 14px 16px;
  margin: 16px 0;
}
.warning-box p { color: var(--text-2); font-size: 13px; margin: 0; }

/* Rule list */
.rule-list { display: flex; flex-direction: column; gap: 8px; margin: 14px 0; }
.rule-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 14px; border-radius: var(--r);
  font-size: 13px;
}
.rule-item.allowed {
  background: var(--green-dim);
  border: 1px solid rgba(34,197,94,0.15);
}
.rule-item.disallowed {
  background: rgba(239,68,68,0.06);
  border: 1px solid rgba(239,68,68,0.15);
}
.rule-icon { font-size: 13px; flex-shrink: 0; margin-top: 1px; }
.rule-text { color: var(--text-2); line-height: 1.5; }

/* Third party list */
.third-party-list { display: flex; flex-direction: column; gap: 10px; margin: 14px 0; }
.third-party-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r); padding: 14px 16px;
}
.third-party-name {
  font-size: 13px; font-weight: 700; color: var(--text);
  margin-bottom: 4px;
}
.third-party-desc { font-size: 12px; color: var(--text-3); margin-bottom: 6px; }
.third-party-link {
  font-size: 11px; color: var(--accent);
  text-decoration: none; font-weight: 600;
}
.third-party-link:hover { text-decoration: underline; }

/* Contact card */
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--r-lg); padding: 20px;
  display: flex; flex-direction: column; gap: 10px;
}
.contact-row {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 13px;
}
.contact-label { color: var(--text-3); width: 80px; flex-shrink: 0; }
.contact-value { color: var(--text-2); }
.contact-value a { color: var(--accent); text-decoration: none; }
.contact-value a:hover { text-decoration: underline; }

/* ── BILINGUAL ───────────────────────────────────────────────── */
[data-lang] { display: none; }
.lang-id [data-lang="id"] { display: block; }
.lang-en [data-lang="en"] { display: block; }
/* Inline bilingual */
[data-lang-inline] { display: none; }
.lang-id [data-lang-inline="id"] { display: inline; }
.lang-en [data-lang-inline="en"] { display: inline; }

/* ── FOOTER ──────────────────────────────────────────────────── */
.legal-footer {
  border-top: 1px solid var(--border);
  padding: 24px;
  text-align: center;
  font-size: 12px; color: var(--text-3);
  display: flex; align-items: center; justify-content: center;
  gap: 16px; flex-wrap: wrap;
}
.legal-footer a {
  color: var(--text-3); text-decoration: none;
}
.legal-footer a:hover { color: var(--accent); }

/* ── GATE PAGE (index.html) ──────────────────────────────────── */
.gate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px; margin-top: 32px;
}
.gate-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px; text-decoration: none;
  transition: border-color .15s ease, box-shadow .15s ease;
  display: block;
}
.gate-card:hover {
  border-color: var(--border-2);
  box-shadow: 0 0 24px var(--accent-dim);
}
.gate-card-eyebrow {
  font-size: 10px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 8px;
}
.gate-card-title {
  font-size: 16px; font-weight: 700;
  color: var(--text); margin-bottom: 6px;
}
.gate-card-desc {
  font-size: 12px; color: var(--text-3);
  line-height: 1.5; margin-bottom: 14px;
}
.gate-card-docs {
  display: flex; gap: 6px; flex-wrap: wrap;
}
.gate-doc-chip {
  font-size: 11px; font-weight: 600;
  padding: 3px 9px; border-radius: 6px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-3);
}

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 600px) {
  .topbar { padding: 0 16px; }
  .breadcrumb { padding: 12px 16px; }
  .tabs-wrap { padding: 0 16px; }
  .hero { padding: 32px 16px 28px; }
  .content { padding: 0 16px 60px; }
  .contact-row { flex-direction: column; gap: 2px; }
  .contact-label { width: auto; }
}
