/* QuranicWords — privacy policy page (external file: the site's CSP allows no inline styles). */
:root {
  --bg: #f4faf6;
  --surface: #ffffff;
  --surface-2: #e8f4ec;
  --fg: #10241b;
  --muted: #4f6358;
  --line: #d3e6da;
  --accent: #006b37;
  --accent-soft: rgba(0, 107, 55, 0.09);
  --hero-1: #053827;
  --hero-2: #0a5a3c;
  --hero-fg: #ffffff;
  --gold: #ebc971;
  --shadow: 0 1px 2px rgba(5, 56, 39, 0.06), 0 6px 22px rgba(5, 56, 39, 0.07);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #021d14;
    --surface: #053827;
    --surface-2: #0a4430;
    --fg: #eef6f1;
    --muted: #a9bdb2;
    --line: rgba(235, 201, 113, 0.18);
    --accent: #ebc971;
    --accent-soft: rgba(235, 201, 113, 0.12);
    --hero-1: #053827;
    --hero-2: #021d14;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 26px rgba(0, 0, 0, 0.28);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.7 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
}
a { color: var(--accent); text-underline-offset: 2px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* Top bar */
.bar {
  position: sticky; top: 0; z-index: 2;
  background: color-mix(in srgb, var(--hero-1) 94%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(235, 201, 113, 0.22);
}
.bar-inner { max-width: 880px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; letter-spacing: 0.2px; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.bar-link { color: var(--gold); font-weight: 600; font-size: 0.95rem; text-decoration: none; white-space: nowrap; }
.bar-link:hover { text-decoration: underline; }

/* Hero */
.hero { background: linear-gradient(160deg, var(--hero-1), var(--hero-2)); color: var(--hero-fg); }
.hero-inner { max-width: 880px; margin: 0 auto; padding: 44px 16px 84px; }
.eyebrow { margin: 0 0 6px; color: var(--gold); font-weight: 700; font-size: 0.8rem; letter-spacing: 1.6px; text-transform: uppercase; }
.hero h1 { margin: 0 0 10px; font-size: clamp(1.9rem, 5vw, 2.6rem); line-height: 1.2; }
.lede { margin: 0; max-width: 620px; font-size: 1.08rem; color: rgba(255, 255, 255, 0.86); }
.updated { margin: 16px 0 0; font-size: 0.88rem; color: rgba(255, 255, 255, 0.66); }

main { max-width: 880px; margin: -56px auto 0; padding: 0 16px 56px; position: relative; }

/* Highlights */
.highlights { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 0 0 22px; padding: 0; list-style: none; }
.highlights li {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 14px;
  box-shadow: var(--shadow);
}
.hl-icon {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent); margin-bottom: 8px;
}
.hl-icon svg { width: 22px; height: 22px; }
.highlights strong { display: block; font-size: 1rem; line-height: 1.3; }
.highlights span { display: block; color: var(--muted); font-size: 0.88rem; line-height: 1.45; margin-top: 2px; }

/* At a glance */
.glance { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; margin-bottom: 22px; }
.glance h2 { margin: 0; padding: 16px 20px 6px; font-size: 1.1rem; }
.glance table { width: 100%; border-collapse: collapse; }
.glance th, .glance td { text-align: start; padding: 11px 20px; border-top: 1px solid var(--line); vertical-align: top; }
.glance th { font-weight: 600; width: 46%; }
.glance td { color: var(--muted); }
.pill { display: inline-block; padding: 1px 10px; border-radius: 999px; font-weight: 700; font-size: 0.85rem; background: var(--accent-soft); color: var(--accent); margin-inline-end: 6px; }

/* Layout: contents + sections */
.layout { display: grid; grid-template-columns: 220px 1fr; gap: 22px; align-items: start; }
.toc { position: sticky; top: 72px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 8px; box-shadow: var(--shadow); }
.toc p { margin: 0 12px 6px; font-size: 0.78rem; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }
.toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a { display: block; padding: 5px 12px; border-radius: 8px; color: var(--fg); text-decoration: none; font-size: 0.93rem; line-height: 1.4; }
.toc a::before { content: counter(toc) ". "; color: var(--muted); }
.toc a:hover { background: var(--accent-soft); color: var(--accent); }

.sections { display: grid; gap: 14px; counter-reset: sec; }
.sections section {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px;
  box-shadow: var(--shadow); scroll-margin-top: 76px; counter-increment: sec;
}
.sections h2 { margin: 0 0 6px; font-size: 1.15rem; line-height: 1.35; display: flex; align-items: baseline; gap: 10px; }
.sections h2::before {
  content: counter(sec); flex: none; display: inline-grid; place-items: center; width: 26px; height: 26px;
  border-radius: 8px; background: var(--accent-soft); color: var(--accent); font-size: 0.85rem; font-weight: 700;
}
.sections p { margin: 8px 0; }
.sections ul { margin: 8px 0; padding-inline-start: 22px; }
.sections li { margin: 4px 0; }
.sections li::marker { color: var(--accent); }

.contact { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.contact a {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 12px;
  background: var(--accent-soft); border: 1px solid var(--line); font-weight: 600; text-decoration: none; overflow-wrap: anywhere;
}
.contact a:hover { border-color: var(--accent); }
.contact svg { width: 18px; height: 18px; flex: none; }

footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 0.88rem; }
.foot-inner { max-width: 880px; margin: 0 auto; padding: 20px 16px 32px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; }

@media (max-width: 760px) {
  .highlights { grid-template-columns: repeat(2, 1fr); }
  .layout { grid-template-columns: 1fr; }
  .toc { position: static; }
  .glance th { width: auto; }
  .glance th, .glance td { display: block; border-top: 0; padding: 4px 20px; }
  .glance tr { display: block; border-top: 1px solid var(--line); padding: 8px 0; }
  .sections section { padding: 16px 18px; }
}
@media (max-width: 330px) {
  .highlights { grid-template-columns: 1fr; }
}
@media print {
  .bar, .toc { display: none; }
  .hero { background: none; color: #000; }
  .lede, .updated { color: #333; }
  main { margin-top: 0; }
  .layout { grid-template-columns: 1fr; }
  .sections section, .highlights li, .glance { box-shadow: none; }
}
