/* Population Plus One — Shared Privacy Policy Styles */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg:       #07071a;
    --surface:  #0f0f2e;
    --card:     #13133a;
    --border:   rgba(255,255,255,0.08);
    --gold:     #d4af37;
    --text:     rgba(255,255,255,0.88);
    --muted:    rgba(255,255,255,0.45);
    --accent:   var(--gold);        /* overridden per-page */
    --radius:   14px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    padding-bottom: 80px;
}

/* ── TOP BAR ── */
.topbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 32px; height: 56px;
    background: rgba(7,7,26,0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 50;
}
.topbar-brand { font-size: 13px; font-weight: 700; color: var(--gold); letter-spacing: 0.3px; text-decoration: none; }
.topbar-back {
    font-size: 12px; color: var(--muted); text-decoration: none;
    display: flex; align-items: center; gap: 6px; transition: color 0.2s;
}
.topbar-back:hover { color: var(--text); }

/* ── HERO BANNER ── */
.policy-hero {
    background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(124,58,237,0.12) 0%, transparent 70%);
    padding: 64px 32px 56px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}
.policy-hero-icon { font-size: 48px; margin-bottom: 16px; }
.policy-hero h1 { font-size: 28px; font-weight: 800; color: #fff; margin-bottom: 8px; }
.policy-hero .app-label {
    display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 3px;
    text-transform: uppercase; padding: 4px 14px; border-radius: 20px;
    background: rgba(255,255,255,0.07); color: var(--muted); margin-bottom: 16px;
}
.policy-hero .effective-date { font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.policy-hero .summary {
    font-size: 15px; color: var(--muted); max-width: 560px; margin: 0 auto;
    line-height: 1.7; border-top: 1px solid var(--border); padding-top: 20px;
}

/* ── QUICK FACTS ── */
.quick-facts {
    max-width: 760px; margin: 40px auto; padding: 0 24px;
    display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px;
}
.fact-chip {
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 16px; text-align: center;
}
.fact-chip-icon { font-size: 22px; margin-bottom: 6px; }
.fact-chip-label { font-size: 11px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 1px; }
.fact-chip-value { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ── BODY / SECTIONS ── */
.policy-body { max-width: 760px; margin: 0 auto; padding: 0 24px; }

.policy-section {
    margin-bottom: 40px;
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 32px;
    position: relative; overflow: hidden;
}
.policy-section::before {
    content: ''; position: absolute; top: 0; left: 0; width: 3px; height: 100%;
    background: var(--accent);
}
.policy-section h2 {
    font-size: 16px; font-weight: 800; color: #fff;
    margin-bottom: 14px; display: flex; align-items: center; gap: 10px;
}
.policy-section h2 .icon { font-size: 18px; }
.policy-section p { font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.policy-section p:last-child { margin-bottom: 0; }
.policy-section ul {
    list-style: none; margin-top: 10px; display: flex; flex-direction: column; gap: 8px;
}
.policy-section ul li {
    font-size: 14px; color: var(--muted); padding-left: 18px; position: relative;
}
.policy-section ul li::before {
    content: '→'; position: absolute; left: 0; color: var(--accent); font-size: 12px;
}

/* ── PERMISSION TABLE ── */
.perm-table { width: 100%; border-collapse: collapse; margin-top: 14px; }
.perm-table th {
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
    color: var(--muted); text-align: left; padding: 8px 12px;
    border-bottom: 1px solid var(--border);
}
.perm-table td {
    font-size: 13px; color: var(--muted); padding: 12px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.04); vertical-align: top;
}
.perm-table tr:last-child td { border-bottom: none; }
.perm-name { color: var(--text); font-weight: 600; }

/* ── CONTACT CARD ── */
.contact-card {
    background: linear-gradient(135deg, rgba(212,175,55,0.08), rgba(124,58,237,0.08));
    border: 1px solid rgba(212,175,55,0.2); border-radius: var(--radius);
    padding: 32px; text-align: center; margin-top: 48px;
}
.contact-card h3 { font-size: 18px; font-weight: 800; color: #fff; margin-bottom: 8px; }
.contact-card p { font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.contact-card a {
    display: inline-block; padding: 12px 24px; border-radius: 10px;
    background: var(--gold); color: #07071a; font-size: 13px; font-weight: 700;
    text-decoration: none; transition: opacity 0.2s;
}
.contact-card a:hover { opacity: 0.85; }
.contact-card .alt-contact { font-size: 12px; color: var(--muted); margin-top: 14px; }
.contact-card .alt-contact a { background: none; color: var(--gold); padding: 0; display: inline; }

/* ── FOOTER ── */
.policy-footer {
    max-width: 760px; margin: 0 auto; padding: 32px 24px 0;
    display: flex; justify-content: space-between; align-items: center;
    border-top: 1px solid var(--border); font-size: 12px; color: var(--muted);
    flex-wrap: wrap; gap: 12px;
}
.policy-footer a { color: var(--muted); text-decoration: none; }
.policy-footer a:hover { color: var(--text); }
