/* CreatorConnect legal docs — Privacy / Terms presentation */

:root {
    --priv-primary: #7C3AED;
    --priv-primary-deep: #5B21B6;
    --priv-indigo: #4F46E5;
    --priv-bg: #F8F7FC;
    --priv-surface: #FFFFFF;
    --priv-text: #1E1635;
    --priv-muted: #5F5674;
    --priv-border: rgba(124, 58, 237, 0.12);
    --priv-shadow: 0 16px 40px rgba(91, 33, 182, 0.08);
    --priv-radius: 24px;
    --priv-font: "Plus Jakarta Sans", system-ui, sans-serif;
}

.priv-body {
    margin: 0;
    font-family: var(--priv-font);
    color: var(--priv-text);
    background: var(--priv-bg);
    background-image:
        radial-gradient(ellipse 70% 50% at 8% 0%, rgba(124, 58, 237, 0.14) 0%, transparent 55%),
        radial-gradient(ellipse 55% 45% at 95% 15%, rgba(79, 70, 229, 0.10) 0%, transparent 50%),
        radial-gradient(ellipse 40% 35% at 50% 100%, rgba(124, 58, 237, 0.08) 0%, transparent 60%);
    background-attachment: fixed;
    min-height: 100vh;
}

.priv-body a {
    color: var(--priv-primary);
    text-decoration: none;
    font-weight: 600;
}

.priv-body a:hover { text-decoration: underline; }

.priv-body a:focus-visible {
    outline: 2px solid var(--priv-primary);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Top bar */
.priv-topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(248, 247, 252, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--priv-border);
}

.priv-topbar__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.85rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.priv-brand {
    display: inline-flex;
    align-items: center;
    color: var(--priv-text) !important;
    text-decoration: none !important;
}

.priv-brand img {
    height: 36px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    display: block;
}

.priv-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--priv-border);
    color: var(--priv-text) !important;
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none !important;
    box-shadow: 0 4px 14px rgba(91, 33, 182, 0.06);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.priv-back:hover {
    transform: translateY(-1px);
    border-color: rgba(124, 58, 237, 0.35);
    box-shadow: 0 8px 20px rgba(91, 33, 182, 0.1);
    text-decoration: none !important;
}

/* Hero */
.priv-hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: clamp(1.75rem, 4vh, 2.75rem) 1.25rem 1.5rem;
}

.priv-hero h1 {
    font-size: clamp(2rem, 4vw, 2.65rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin: 0 0 0.75rem;
}

.priv-hero__sub {
    font-size: 1.08rem;
    line-height: 1.6;
    color: var(--priv-muted);
    max-width: 40rem;
    margin: 0 0 1.25rem;
    font-weight: 500;
}

.priv-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.priv-badge {
    display: inline-flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.55rem 0.9rem;
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--priv-border);
    box-shadow: 0 4px 14px rgba(91, 33, 182, 0.05);
    min-width: 8.5rem;
}

.priv-badge span {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--priv-primary);
}

.priv-badge strong {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--priv-text);
}

/* Layout */
.priv-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem 3rem;
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.priv-sidebar {
    position: sticky;
    top: 78px;
    max-height: calc(100vh - 96px);
    overflow: auto;
    background: #fff;
    border: 1px solid var(--priv-border);
    border-radius: 20px;
    padding: 1rem 0.85rem;
    box-shadow: var(--priv-shadow);
}

.priv-sidebar__title {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--priv-muted);
    padding: 0.25rem 0.55rem 0.65rem;
}

.priv-sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.priv-sidebar a {
    display: block;
    padding: 0.5rem 0.65rem;
    border-radius: 10px;
    color: var(--priv-muted) !important;
    font-size: 0.86rem;
    font-weight: 600;
    text-decoration: none !important;
    border-left: 3px solid transparent;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.priv-sidebar a:hover {
    background: rgba(124, 58, 237, 0.06);
    color: var(--priv-primary-deep) !important;
}

.priv-sidebar a.is-active {
    background: rgba(124, 58, 237, 0.1);
    color: var(--priv-primary-deep) !important;
    border-left-color: var(--priv-primary);
}

.priv-mobile-toc {
    display: none;
    margin-bottom: 1rem;
}

.priv-mobile-toc summary {
    list-style: none;
    cursor: pointer;
    background: #fff;
    border: 1px solid var(--priv-border);
    border-radius: 14px;
    padding: 0.85rem 1rem;
    font-weight: 700;
    box-shadow: var(--priv-shadow);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.priv-mobile-toc summary::-webkit-details-marker { display: none; }

.priv-mobile-toc nav {
    margin-top: 0.5rem;
    background: #fff;
    border: 1px solid var(--priv-border);
    border-radius: 14px;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
}

.priv-mobile-toc a {
    padding: 0.55rem 0.7rem;
    border-radius: 8px;
    color: var(--priv-muted) !important;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none !important;
}

.priv-mobile-toc a:hover {
    background: rgba(124, 58, 237, 0.08);
    color: var(--priv-primary) !important;
}

/* Content */
.priv-content {
    min-width: 0;
}

.priv-card {
    background: var(--priv-surface);
    border: 1px solid var(--priv-border);
    border-radius: var(--priv-radius);
    box-shadow: var(--priv-shadow);
    padding: clamp(1.5rem, 3vw, 2.5rem);
    margin-bottom: 1.5rem;
    scroll-margin-top: 96px;
}

.priv-card h2 {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: clamp(1.25rem, 2.2vw, 1.55rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 0.85rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid rgba(124, 58, 237, 0.1);
    color: var(--priv-text);
}

.priv-card h2 .priv-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #fff;
    background: linear-gradient(135deg, var(--priv-primary), var(--priv-indigo));
    flex-shrink: 0;
}

.priv-card h3 {
    font-size: 1.15rem;
    font-weight: 800;
    margin: 1.5rem 0 0.65rem;
    color: var(--priv-text);
}

.priv-card p,
.priv-card li {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--priv-muted);
}

.priv-card p { margin: 0 0 1rem; }
.priv-card p:last-child { margin-bottom: 0; }

.priv-card ul {
    padding-left: 1.2rem;
    margin: 0 0 1rem;
}

.priv-card li { margin-bottom: 0.45rem; }

.priv-card strong { color: var(--priv-text); }

.priv-intro-meta {
    color: var(--priv-muted);
    font-size: 0.98rem;
    margin-bottom: 1.25rem !important;
}

/* Callouts */
.priv-callout {
    border-radius: 16px;
    padding: 1rem 1.1rem;
    margin: 1rem 0;
    border: 1px solid transparent;
}

.priv-callout p { margin: 0; color: inherit; font-size: 0.98rem; }

.priv-callout--info {
    background: rgba(37, 99, 235, 0.08);
    border-color: rgba(37, 99, 235, 0.18);
    color: #1E3A8A;
}

.priv-callout--good {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.2);
    color: #065F46;
}

.priv-callout--warn {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.25);
    color: #92400E;
}

.priv-callout--danger {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.18);
    color: #991B1B;
}

/* Permission cards */
.priv-perms {
    display: grid;
    gap: 0.75rem;
    margin: 0.75rem 0 1.15rem;
}

.priv-perm {
    background: #F4F2FA;
    border: 1px solid var(--priv-border);
    border-radius: 14px;
    padding: 0.9rem 1rem;
}

.priv-perm code {
    display: inline-block;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--priv-primary-deep);
    background: rgba(124, 58, 237, 0.1);
    padding: 0.2rem 0.45rem;
    border-radius: 6px;
    margin-bottom: 0.45rem;
}

.priv-perm p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--priv-muted);
}

/* Security grid */
.priv-security {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
    margin: 1rem 0;
}

.priv-security__item {
    background: rgba(124, 58, 237, 0.05);
    border: 1px solid var(--priv-border);
    border-radius: 14px;
    padding: 0.9rem;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--priv-text);
    line-height: 1.45;
}

.priv-security__item i {
    display: block;
    color: var(--priv-primary);
    font-size: 1.15rem;
    margin-bottom: 0.4rem;
}

/* Flow */
.priv-flow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    margin: 1rem 0 1.25rem;
    padding: 1rem;
    background: #F4F2FA;
    border-radius: 16px;
    border: 1px solid var(--priv-border);
}

.priv-flow__node {
    background: #fff;
    border: 1px solid var(--priv-border);
    border-radius: 12px;
    padding: 0.55rem 0.8rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--priv-text);
    box-shadow: 0 2px 8px rgba(91, 33, 182, 0.05);
}

.priv-flow__arrow {
    color: var(--priv-primary);
    font-weight: 800;
}

/* Contact card */
.priv-contact {
    display: grid;
    gap: 0.35rem;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.08), rgba(79, 70, 229, 0.08));
    border: 1px solid var(--priv-border);
    border-radius: 18px;
    padding: 1.25rem 1.35rem;
    margin-top: 0.5rem;
}

.priv-contact strong {
    font-size: 1.1rem;
    color: var(--priv-text);
}

.priv-contact .priv-contact__actions {
    margin-top: 0.85rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.priv-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.65rem 1.15rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--priv-primary), var(--priv-indigo));
    color: #fff !important;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none !important;
    box-shadow: 0 8px 22px rgba(124, 58, 237, 0.28);
    transition: transform 0.2s, box-shadow 0.2s;
}

.priv-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(124, 58, 237, 0.35);
    text-decoration: none !important;
}

/* Related */
.priv-related {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.85rem;
}

.priv-related a {
    display: block;
    background: #fff;
    border: 1px solid var(--priv-border);
    border-radius: 18px;
    padding: 1.15rem 1.2rem;
    color: var(--priv-text) !important;
    text-decoration: none !important;
    box-shadow: var(--priv-shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.priv-related a:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(91, 33, 182, 0.12);
}

.priv-related i {
    display: inline-flex;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    align-items: center;
    justify-content: center;
    background: rgba(124, 58, 237, 0.1);
    color: var(--priv-primary);
    margin-bottom: 0.65rem;
}

.priv-related strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.priv-related span {
    font-size: 0.86rem;
    color: var(--priv-muted);
    font-weight: 500;
}

.priv-footer {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem 2.5rem;
    color: var(--priv-muted);
    font-size: 0.85rem;
}

/* Reveal */
.priv-reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.priv-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 991px) {
    .priv-layout {
        grid-template-columns: 1fr;
    }

    .priv-sidebar { display: none; }
    .priv-mobile-toc { display: block; }
}

/* Acceptable use do / don't */
.priv-use-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
    margin: 1rem 0;
}

.priv-use-card {
    border-radius: 16px;
    padding: 1rem 1.1rem;
    border: 1px solid var(--priv-border);
}

.priv-use-card h3 {
    margin: 0 0 0.65rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.priv-use-card ul {
    margin: 0;
    padding-left: 1.1rem;
}

.priv-use-card--do {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.22);
}

.priv-use-card--do h3 { color: #065F46; }

.priv-use-card--dont {
    background: rgba(239, 68, 68, 0.07);
    border-color: rgba(239, 68, 68, 0.2);
}

.priv-use-card--dont h3 { color: #991B1B; }

.priv-platform-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin: 1rem 0;
}

.priv-platform-card {
    background: #F4F2FA;
    border: 1px solid var(--priv-border);
    border-radius: 14px;
    padding: 1rem;
    text-align: center;
}

.priv-platform-card i {
    display: inline-flex;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.priv-platform-card--ig i { background: linear-gradient(135deg, #F58529, #DD2A7B, #8134AF); }
.priv-platform-card--fb i { background: #1877F2; }
.priv-platform-card--yt i { background: #FF0000; }

.priv-platform-card strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.priv-platform-card span {
    font-size: 0.8rem;
    color: var(--priv-muted);
    font-weight: 500;
    line-height: 1.4;
}

@media (max-width: 640px) {
    .priv-card { padding: 1.25rem; }
    .priv-hero h1 { font-size: 1.85rem; }
    .priv-flow__arrow { display: none; }
    .priv-flow {
        flex-direction: column;
        align-items: stretch;
    }
    .priv-flow__node { text-align: center; }
    .priv-use-grid,
    .priv-platform-grid { grid-template-columns: 1fr; }
}
