/* Privacy page — matches pricing.css design language. Loads after navbar.css. */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 920px; margin: 0 auto; padding: 0 24px; }

.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 8px; padding: 12px 22px; border-radius: 10px;
    font-weight: 600; font-size: 0.95rem; border: none; cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s;
    font-family: inherit; text-decoration: none;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #8b5cf6 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(124, 58, 237, 0.45); text-decoration: none; }

/* ── Hero ── */
.privacy-hero {
    padding: 70px 0 30px;
    text-align: center;
    background: linear-gradient(180deg, var(--primary-50) 0%, var(--bg) 100%);
}
.privacy-hero h1 {
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-bottom: 10px;
}
.privacy-hero .effective {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 18px;
}
.privacy-hero .lead {
    font-size: 1.08rem;
    color: var(--text-muted);
    max-width: 680px;
    margin: 0 auto;
}
.privacy-hero .badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary-100);
    color: var(--primary-dark);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 18px;
}

/* ── Policy cards ── */
.privacy-body {
    margin: 50px auto 60px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.policy-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px 32px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.policy-card h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.01em;
}

.policy-card p {
    color: var(--text-muted);
    margin-bottom: 12px;
}
.policy-card p:last-child { margin-bottom: 0; }

.policy-headline {
    color: var(--text) !important;
    font-weight: 600;
    font-size: 1.02rem;
}

.policy-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}
.policy-list li {
    position: relative;
    padding-left: 22px;
    color: var(--text-muted);
}
.policy-list li::before {
    content: "";
    position: absolute;
    left: 0; top: 10px;
    width: 6px; height: 6px;
    background: var(--primary);
    border-radius: 50%;
}

/* Section dot icons. */
.dot {
    display: inline-block;
    width: 28px; height: 28px;
    border-radius: 8px;
    background: var(--primary-100);
    position: relative;
    flex-shrink: 0;
}
.dot::after {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    line-height: 1;
}
.dot-lock::after  { content: "🔒"; }
.dot-gear::after  { content: "⚙️"; }
.dot-check::after { content: "✅"; }
.dot-mail::after  { content: "✉️"; }
.dot-info::after  { content: "ℹ️"; }
.dot-db::after    { content: "🗂"; }
.dot-block::after { content: "🚫"; }
.dot-shield::after{ content: "🛡"; }
.dot-bot::after   { content: "🤖"; }
.dot-key::after   { content: "🔑"; }
.dot-clock::after { content: "⏱"; }
.dot-user::after  { content: "🧒"; }
.dot-edit::after  { content: "📝"; }

/* Sub-headings inside a policy card. */
.policy-card h3 {
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--text);
    margin: 18px 0 8px;
    letter-spacing: -0.005em;
}
.policy-card h3:first-of-type { margin-top: 6px; }
.policy-card em {
    font-style: italic;
    color: var(--text);
}
.policy-card code {
    background: var(--primary-50);
    color: var(--primary-dark);
    padding: 1px 6px;
    border-radius: 5px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.86rem;
}
.policy-card a {
    color: var(--primary);
    font-weight: 500;
}

.muted-note {
    color: var(--text-light) !important;
    font-size: 0.88rem;
    margin-top: 4px;
}

/* FAQ <details> inside policy cards (help page). */
.policy-card .faq-item {
    border-top: 1px solid var(--border-soft);
    padding: 14px 0;
}
.policy-card .faq-item:first-of-type { border-top: none; padding-top: 6px; }
.policy-card .faq-item summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--text);
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.policy-card .faq-item summary::-webkit-details-marker { display: none; }
.policy-card .faq-item summary::after {
    content: "+";
    color: var(--primary);
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1;
    transition: transform 0.2s ease;
}
.policy-card .faq-item[open] summary::after { content: "−"; }
.policy-card .faq-item p {
    margin-top: 10px;
    color: var(--text-muted);
}

/* Permissions table. */
.perm-table-wrap {
    margin-top: 14px;
    overflow-x: auto;
    border: 1px solid var(--border-soft);
    border-radius: 12px;
}
.perm-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}
.perm-table thead th {
    text-align: left;
    padding: 12px 16px;
    background: var(--bg-muted);
    color: var(--text);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid var(--border-soft);
}
.perm-table .col-perm    { width: 35%; }
.perm-table tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-soft);
    color: var(--text-muted);
    vertical-align: top;
}
.perm-table tbody tr:last-child td { border-bottom: none; }
.perm-table code {
    background: var(--primary-50);
    color: var(--primary-dark);
    padding: 2px 8px;
    border-radius: 6px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.88rem;
    font-weight: 600;
}
.perm-table .muted {
    color: var(--text-light);
    font-size: 0.82rem;
    font-weight: 500;
}

.callout {
    margin-top: 16px !important;
    padding: 12px 16px;
    background: var(--primary-50);
    border-left: 3px solid var(--primary);
    border-radius: 8px;
    color: var(--primary-dark) !important;
    font-size: 0.95rem;
    font-weight: 500;
}

.contact-email {
    margin-top: 4px;
    font-size: 1.05rem;
    font-weight: 600;
}
.contact-email a { color: var(--primary); }

/* ── Bottom CTA ── */
.cta-bottom {
    padding: 60px 0 80px;
    text-align: center;
    background: linear-gradient(180deg, var(--bg) 0%, var(--primary-50) 100%);
}
.cta-bottom h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}
.cta-bottom p {
    color: var(--text-muted);
    margin-bottom: 22px;
}

@media (max-width: 640px) {
    .policy-card { padding: 22px 20px; }
    .perm-table thead th, .perm-table tbody td { padding: 10px 12px; }
    .perm-table .col-perm { width: 40%; }
}
