/* ============================================================
   LEF Worship — Privacy Policy
   Primary: #8D4745  |  Font: Playfair Display + Source Serif 4
   ============================================================ */

:root {
  --primary:        #8D4745;
  --primary-dark:   #6b3434;
  --primary-light:  #b5706e;
  --primary-pale:   #f5eeee;
  --primary-tint:   #fdf7f7;
  --gold:           #c9a96e;
  --text:           #1c1410;
  --text-muted:     #6b5e58;
  --text-light:     #9b8d87;
  --border:         #e8d8d7;
  --white:          #ffffff;
  --radius:         12px;
  --radius-sm:      8px;

  --font-display:   'Playfair Display', Georgia, serif;
  --font-body:      'Source Serif 4', Georgia, serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text);
  background: var(--primary-tint);
}

a {
  color: var(--primary);
  text-decoration: none;
  border-bottom: 1px solid var(--primary-light);
  transition: color 0.2s, border-color 0.2s;
}
a:hover {
  color: var(--primary-dark);
  border-color: var(--primary-dark);
}

/* ── HEADER ───────────────────────────────────────────── */

.site-header {
  background: var(--primary);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 16px rgba(141, 71, 69, 0.35);
}

.header-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-icon {
  font-size: 1.5rem;
  color: var(--gold);
  line-height: 1;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--white);
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.brand-sub {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
}

.header-badge {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  background: var(--gold);
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  font-weight: 600;
  white-space: nowrap;
}

/* ── HERO ─────────────────────────────────────────────── */

.hero {
  background: var(--primary);
  position: relative;
  overflow: hidden;
  padding: 4rem 1.5rem 3.5rem;
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 60% 40%, rgba(201, 169, 110, 0.12) 0%, transparent 65%),
              radial-gradient(ellipse at 10% 80%, rgba(0,0,0,0.2) 0%, transparent 60%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
}

.hero-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 1.1rem;
}

.hero-desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.78);
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.hero-desc strong {
  color: var(--white);
  font-weight: 600;
}

.hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
}

.hero-meta strong {
  color: rgba(255,255,255,0.85);
  font-weight: 600;
}

.hero-meta .dot {
  opacity: 0.4;
}

.hero-cross {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  font-size: clamp(6rem, 14vw, 11rem);
  color: rgba(255,255,255,0.05);
  line-height: 1;
  z-index: 1;
  user-select: none;
  pointer-events: none;
}

/* ── SUMMARY STRIP ────────────────────────────────────── */

.summary-strip {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 1.75rem 1.5rem;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.summary-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  padding: 1.25rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--primary-tint);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.summary-card:hover {
  border-color: var(--primary-light);
  box-shadow: 0 4px 16px rgba(141,71,69,0.1);
}

.summary-icon {
  font-size: 1.6rem;
  line-height: 1;
}

.summary-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ── MAIN LAYOUT ──────────────────────────────────────── */

.main-content {
  max-width: 1140px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

.content-wrapper {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 3rem;
  align-items: start;
}

/* ── TOC ──────────────────────────────────────────────── */

.toc {
  position: sticky;
  top: 80px;
}

.toc-inner {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  border-left: 3px solid var(--primary);
}

.toc-title {
  font-family: var(--font-display);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 0.85rem;
}

.toc-list {
  list-style: none;
  counter-reset: toc;
}

.toc-list li {
  counter-increment: toc;
  margin-bottom: 0.15rem;
}

.toc-list a {
  font-size: 0.82rem;
  color: var(--text-muted);
  border: none;
  display: block;
  padding: 0.3rem 0;
  transition: color 0.2s;
  line-height: 1.4;
}

.toc-list a::before {
  content: counter(toc, decimal-leading-zero) ". ";
  color: var(--primary-light);
  font-variant-numeric: tabular-nums;
  font-size: 0.72rem;
}

.toc-list a:hover {
  color: var(--primary);
  border: none;
}

/* ── POLICY BODY ──────────────────────────────────────── */

.policy-body {
  min-width: 0;
}

.policy-section {
  position: relative;
  padding-left: 3.5rem;
  margin-bottom: 0;
}

.section-num {
  position: absolute;
  left: 0;
  top: 0.2rem;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--primary-pale);
  line-height: 1;
  user-select: none;
}

.policy-section h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 1rem;
  line-height: 1.25;
}

.policy-section h2 em {
  color: var(--primary);
  font-style: italic;
}

.policy-section p {
  color: var(--text-muted);
  margin-bottom: 0.85rem;
  font-weight: 300;
}

.policy-section p strong {
  color: var(--text);
  font-weight: 600;
}

.policy-section p:last-child {
  margin-bottom: 0;
}

.section-divider {
  height: 1px;
  background: linear-gradient(to right, var(--primary-light), transparent);
  margin: 2.5rem 0;
  opacity: 0.3;
}

/* ── FEATURE LIST ─────────────────────────────────────── */

.feature-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin: 1rem 0;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 0.5rem 0.75rem;
  background: var(--primary-tint);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.lang-tag {
  background: var(--primary);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  min-width: 28px;
  text-align: center;
}

/* ── NO COLLECT GRID ──────────────────────────────────── */

.no-collect-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin: 1rem 0;
}

.no-collect-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 0.5rem 0.65rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.no-icon {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

/* ── HIGHLIGHT BOX ────────────────────────────────────── */

.highlight-box {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--primary-pale);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1.1rem 1.25rem;
  margin: 1.25rem 0 0;
}

.highlight-icon {
  font-size: 1.3rem;
  color: var(--primary);
  line-height: 1;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.highlight-box p {
  margin: 0;
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ── PERMISSIONS TABLE ────────────────────────────────── */

.permissions-table {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin: 1rem 0;
}

.perm-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}

.perm-row:last-child {
  border-bottom: none;
}

.perm-header {
  background: var(--primary);
  color: var(--white);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.perm-header span {
  color: var(--white);
}

.perm-row:not(.perm-header) {
  background: var(--white);
  color: var(--text-muted);
}

.perm-row:not(.perm-header):nth-child(even) {
  background: var(--primary-tint);
}

/* ── CONTACT CARD ─────────────────────────────────────── */

.contact-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 1rem;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.contact-row:last-child {
  border-bottom: none;
}

.contact-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  font-weight: 600;
  min-width: 80px;
}

.contact-value {
  font-size: 0.92rem;
  color: var(--text);
}

.contact-link {
  color: var(--primary);
  font-weight: 400;
}

/* ── FOOTER ───────────────────────────────────────────── */

.site-footer {
  background: var(--primary-dark);
  padding: 2.5rem 1.5rem;
  text-align: center;
}

.footer-inner {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.footer-cross {
  font-size: 1.1rem;
  color: var(--gold);
}

.footer-app-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white);
}

.footer-copy {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
}

.footer-lef {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
}

.footer-lef a {
  color: var(--gold);
  border-bottom-color: rgba(201, 169, 110, 0.4);
}

.footer-lef a:hover {
  color: #e8c88a;
  border-bottom-color: #e8c88a;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {
  .content-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .toc {
    position: static;
  }

  .toc-inner {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: baseline;
    padding: 1rem 1.25rem;
  }

  .toc-title {
    margin-bottom: 0;
    white-space: nowrap;
  }

  .toc-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1.25rem;
    counter-reset: toc;
  }

  .toc-list a {
    padding: 0;
  }

  .no-collect-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .hero {
    padding: 3rem 1.25rem 2.5rem;
  }

  .hero-cross {
    display: none;
  }

  .policy-section {
    padding-left: 0;
  }

  .section-num {
    position: static;
    display: block;
    font-size: 0.7rem;
    color: var(--primary-light);
    font-family: var(--font-body);
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
  }

  .policy-section h2 {
    font-size: 1.25rem;
  }

  .feature-list {
    grid-template-columns: 1fr;
  }

  .no-collect-grid {
    grid-template-columns: 1fr 1fr;
  }

  .perm-row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .perm-header {
    display: none;
  }

  .perm-row:not(.perm-header) strong {
    color: var(--primary-dark);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

  .contact-row {
    flex-direction: column;
    gap: 0.2rem;
    align-items: flex-start;
  }

  .summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .header-inner {
    padding: 0.7rem 1rem;
  }

  .main-content {
    padding: 2rem 1rem 3rem;
  }
}

@media (max-width: 380px) {
  .no-collect-grid {
    grid-template-columns: 1fr;
  }
}