/* Taqwa+ legal site — shared styles (no external assets) */
:root {
  --bg: #f3efe6;
  --surface: #fcfaf6;
  --surface-muted: #e8e2d4;
  --primary: #0f3d32;
  --primary-muted: #1f5c4c;
  --primary-soft: #e3eee8;
  --accent: #a6844a;
  --text: #15211c;
  --text-secondary: #5c6661;
  --text-tertiary: #8b938e;
  --border: #e0d9cb;
  --divider: #e7e0d2;
  --max: 42rem;
  --pad: 1.25rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(ellipse 120% 80% at 10% -10%, rgba(15, 61, 50, 0.08), transparent 55%),
    radial-gradient(ellipse 90% 60% at 100% 0%, rgba(166, 132, 74, 0.1), transparent 50%),
    var(--bg);
}

a {
  color: var(--primary-muted);
  text-underline-offset: 0.18em;
}

a:hover,
a:focus-visible {
  color: var(--primary);
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.wrap {
  width: min(100% - 2 * var(--pad), 52rem);
  margin-inline: auto;
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(252, 250, 246, 0.92);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--primary);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  background: var(--primary);
  color: #f6f1e7;
  font-family: system-ui, -apple-system, sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.brand-name {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
}

.nav a {
  text-decoration: none;
  color: var(--text-secondary);
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--primary);
}

main {
  padding: 2rem 0 3.5rem;
}

.hero {
  margin-bottom: 2rem;
}

.eyebrow {
  margin: 0 0 0.5rem;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

h1 {
  margin: 0 0 0.75rem;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(1.85rem, 4vw, 2.45rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--primary);
  font-weight: 700;
}

.lede {
  margin: 0;
  max-width: 36rem;
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.meta {
  margin: 1rem 0 0;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.88rem;
  color: var(--text-tertiary);
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: 0 10px 30px rgba(15, 61, 50, 0.05);
}

.toc {
  margin: 0 0 2rem;
  padding: 1rem 1.15rem;
  background: var(--primary-soft);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.92rem;
}

.toc strong {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.toc ol {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--text-secondary);
}

.toc a {
  text-decoration: none;
}

.legal-doc h2 {
  margin: 2rem 0 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--divider);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--primary);
}

.legal-doc h2:first-of-type {
  margin-top: 0;
  border-top: 0;
  padding-top: 0;
}

.legal-doc h3 {
  margin: 1.25rem 0 0.5rem;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 1.02rem;
  color: var(--primary-muted);
}

.legal-doc p,
.legal-doc li {
  color: var(--text);
}

.legal-doc ul,
.legal-doc ol {
  padding-left: 1.25rem;
}

.legal-doc li + li {
  margin-top: 0.35rem;
}

.cards {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

@media (min-width: 640px) {
  .cards {
    grid-template-columns: 1fr 1fr;
  }
}

.card {
  display: block;
  padding: 1.25rem 1.35rem;
  border-radius: 0.9rem;
  border: 1px solid var(--border);
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.card:hover,
.card:focus-visible {
  border-color: var(--primary-muted);
  box-shadow: 0 8px 24px rgba(15, 61, 50, 0.08);
}

.card h2 {
  margin: 0 0 0.4rem;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 1.15rem;
  color: var(--primary);
}

.card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.98rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 1.75rem 0 2.25rem;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.site-footer .inner {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.footer-links a {
  text-decoration: none;
  font-weight: 600;
  color: var(--primary-muted);
}

.muted {
  color: var(--text-tertiary);
}

.error-panel {
  text-align: center;
  padding: 3rem 1.5rem;
}

.error-panel h1 {
  margin-bottom: 0.75rem;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.5rem;
  font-family: system-ui, -apple-system, sans-serif;
}

.error-actions a {
  display: inline-block;
  padding: 0.7rem 1.1rem;
  border-radius: 0.65rem;
  text-decoration: none;
  font-weight: 600;
  background: var(--primary);
  color: #f6f1e7;
}

.error-actions a.secondary {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--border);
}
