/* Localuck — legal documents stylesheet
   Brand palette derived from the logo (assets/img/logo.jpg):
   navy background, green + gold accents, white reading surface. */
:root {
  --navy-900: #0c1a38;
  --navy-800: #122148;
  --navy-700: #1a2c5a;
  --green: #34a853;
  --green-deep: #1e7d38;
  --gold: #f5c518;
  --fg: #1a1f36;
  --muted: #5a6072;
  --border: #e3e8ef;
  --card: #f6f8fb;
  --radius: 14px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--navy-900);
  background-image: linear-gradient(160deg, var(--navy-800) 0%, var(--navy-900) 60%);
  background-attachment: fixed;
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

[dir="rtl"] body { font-family: "Noto Naskh Arabic", "Segoe UI", Tahoma, sans-serif; }

/* Top bar (navy, brand + back-to-home) */
.site-bar {
  background: var(--navy-900);
  border-bottom: 2px solid var(--green);
}
.site-bar .inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  text-decoration: none;
}
.brand img { width: 28px; height: 28px; display: block; }
.brand span { color: #fff; }
.home-link {
  color: var(--gold);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.home-link:hover { text-decoration: underline; }

/* White reading card on the navy page */
.container {
  max-width: 880px;
  margin: 28px auto 56px;
  background: #fff;
  border-radius: var(--radius);
  padding: 32px clamp(20px, 5vw, 48px) 40px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

header.legal-header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
  margin-bottom: 24px;
}

.lang-switcher {
  margin-top: 4px;
  font-size: 14px;
  color: var(--muted);
}
.lang-switcher a {
  color: var(--navy-700);
  margin: 0 4px;
  text-decoration: none;
}
.lang-switcher a.active { text-decoration: underline; font-weight: 700; color: var(--green-deep); }

h1 { font-size: 28px; color: var(--navy-800); margin: 6px 0 4px; }
h2 { font-size: 20px; margin-top: 30px; color: var(--navy-700); }
h3 { font-size: 16px; margin-top: 20px; color: var(--navy-700); }

.meta { color: var(--muted); font-size: 13px; margin-bottom: 8px; }

p, li { font-size: 15px; }

ul, ol { padding-inline-start: 22px; }

table {
  border-collapse: collapse;
  width: 100%;
  margin: 12px 0;
  font-size: 14px;
}
table th, table td {
  border: 1px solid var(--border);
  padding: 8px 10px;
  text-align: start;
  vertical-align: top;
}
table th { background: var(--card); color: var(--navy-800); }

.notice {
  background: #eefaf0;
  border-inline-start: 4px solid var(--green);
  padding: 12px 16px;
  border-radius: 10px;
  margin: 16px 0;
}

.warn {
  background: #fff8e1;
  border-inline-start: 4px solid var(--gold);
  padding: 12px 16px;
  border-radius: 10px;
  margin: 16px 0;
}

a { color: var(--green-deep); }
a:hover { text-decoration: underline; }

code {
  background: var(--card);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.95em;
}

footer.legal-footer {
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
}
footer.legal-footer .legal-links {
  margin-bottom: 10px;
  line-height: 2;
}
footer.legal-footer .legal-links a {
  color: var(--navy-700);
  text-decoration: none;
}
footer.legal-footer .legal-links a:hover { text-decoration: underline; }
