/* ==========================
 * Privacy — Hero / Landing
 * ========================== */

.privacy-hero {
    text-align: center;
    padding: 2rem 0 3rem;
    max-width: 640px;
    margin: 0 auto;
}

.privacy-subtitle {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--purple-light);
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
}

.privacy-desc {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.2rem;
}

.hero-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.spec-link {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--purple-light);
    text-decoration: none;
    transition: color 0.2s;
}

.spec-link:hover {
    color: var(--purple-lighter);
}


/* ==========================
 * Privacy — Scan Form
 * ========================== */

.scan-form {
    max-width: 540px;
    margin: 0 auto 3rem;
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--purple-border);
    border-radius: 8px;
}

.scan-form h2 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--text-heading);
    margin-bottom: 1rem;
}

.scan-input-group {
    display: flex;
    gap: 8px;
}

.scan-input {
    flex: 1;
    background: var(--bg-input) !important;
    border: 1px solid var(--purple-border-input) !important;
    color: var(--text-light) !important;
    font-family: var(--font-heading);
    font-size: 0.9rem;
}

.scan-input::placeholder {
    color: var(--text-dim);
}

.scan-input:focus {
    background: var(--bg-input-focus) !important;
    border-color: var(--purple) !important;
    box-shadow: 0 0 0 2px var(--purple-bg) !important;
}

.scan-btn {
    background: var(--purple) !important;
    border-color: var(--purple) !important;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    white-space: nowrap;
    padding: 0.375rem 1.2rem;
}

.scan-btn:hover:not(:disabled) {
    background: var(--purple-light) !important;
    border-color: var(--purple-light) !important;
}

.scan-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.scan-status {
    margin-top: 1rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    padding: 0.6rem 1rem;
    border-radius: 4px;
}

.scan-status.scanning {
    color: var(--purple-light);
    background: var(--purple-bg);
    border: 1px solid var(--purple-border);
}

.scan-status.error {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.08);
    border: 1px solid rgba(255, 107, 107, 0.2);
}


/* ==========================
 * Privacy — Featured Scan
 * ========================== */

.featured-scan {
    max-width: 720px;
    margin: 0 auto 3rem;
}

.featured-scan h2 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--text-heading);
    margin-bottom: 1rem;
}

.scan-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.scan-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
    background: var(--bg-card);
    border: 1px solid var(--purple-border);
    border-left: 3px solid var(--purple);
    border-radius: 2px 6px 6px 2px;
    text-decoration: none;
    transition: border-color 0.2s, background 0.2s;
}

.scan-card:hover {
    border-color: var(--purple-border-strong);
    border-left-color: var(--purple-light);
    background: var(--bg-card-hover);
}

.scan-card-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.scan-card-domain {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: var(--text-heading);
    font-weight: 600;
}

.scan-card-meta {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--text-secondary);
}


/* ==========================
 * Privacy — Grade Badges
 * ========================== */

.grade-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 26px;
    padding: 0 8px;
    border-radius: 4px;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.grade-aplus, .grade-a {
    background: rgba(34, 197, 94, 0.12);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.25);
}

.grade-b {
    background: rgba(59, 130, 246, 0.12);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.25);
}

.grade-c {
    background: rgba(234, 179, 8, 0.12);
    color: #eab308;
    border: 1px solid rgba(234, 179, 8, 0.25);
}

.grade-d {
    background: rgba(249, 115, 22, 0.12);
    color: #f97316;
    border: 1px solid rgba(249, 115, 22, 0.25);
}

.grade-f {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.25);
}


/* ==========================
 * Privacy — Result Page
 * ========================== */

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.rescan-btn {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    color: var(--purple-light);
    background: transparent;
    border: 1px solid var(--purple-border);
    border-radius: 4px;
    padding: 5px 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.rescan-btn:hover:not(:disabled) {
    background: var(--purple-bg);
    border-color: var(--purple);
}

.rescan-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.back-link {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.back-link:hover {
    color: var(--purple-light);
}

.result-overview {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--purple-border-light);
}

.badge-embed {
    margin-bottom: 2rem;
}

.embed-previews {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 1rem;
}

.embed-preview-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.embed-preview-label {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    color: var(--text-muted);
}

.embed-hint {
    margin-top: 10px;
    font-size: 0.78rem;
    color: var(--text-dim);
}

.embed-hint code {
    color: var(--purple-lighter);
    font-size: 0.75rem;
}

.embed-snippets {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.embed-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.embed-label {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    color: var(--text-muted);
    min-width: 76px;
    flex-shrink: 0;
}

.embed-code {
    flex: 1;
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    font-size: 0.75rem;
    color: var(--text-secondary);
    background: var(--bg-input, rgba(0, 0, 0, 0.2));
    border: 1px solid var(--purple-border);
    border-radius: 4px;
    padding: 6px 10px;
    overflow-x: auto;
    white-space: nowrap;
}

.embed-copy-btn {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    color: var(--purple-light);
    background: transparent;
    border: 1px solid var(--purple-border);
    border-radius: 4px;
    padding: 5px 12px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    flex-shrink: 0;
}

.embed-copy-btn:hover {
    background: var(--purple-bg);
    border-color: var(--purple);
}

.embed-copy-btn.copied {
    color: #22c55e;
    border-color: rgba(34, 197, 94, 0.3);
    background: rgba(34, 197, 94, 0.08);
}

.result-domain {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--text-heading);
    font-weight: 700;
    margin: 0 0 8px;
}

.result-meta {
    display: flex;
    gap: 16px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--text-muted);
}


/* ==========================
 * Privacy — Score Circle
 * ========================== */

.score-circle {
    position: relative;
    width: 120px;
    height: 120px;
    flex-shrink: 0;
}

.score-ring {
    width: 100%;
    height: 100%;
}

.score-ring-bg {
    fill: none;
    stroke: var(--purple-border);
    stroke-width: 6;
}

.score-ring-fill {
    fill: none;
    stroke-width: 6;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.8s ease;
}

.grade-aplus .score-ring-fill, .grade-a .score-ring-fill { stroke: #22c55e; }
.grade-b .score-ring-fill { stroke: #3b82f6; }
.grade-c .score-ring-fill { stroke: #eab308; }
.grade-d .score-ring-fill { stroke: #f97316; }
.grade-f .score-ring-fill { stroke: #ef4444; }

.score-text {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.score-number {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
}

.grade-aplus .score-number, .grade-a .score-number { color: #22c55e; }
.grade-b .score-number { color: #3b82f6; }
.grade-c .score-number { color: #eab308; }
.grade-d .score-number { color: #f97316; }
.grade-f .score-number { color: #ef4444; }

.score-grade {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 2px;
}


/* ==========================
 * Privacy — Category Breakdown
 * ========================== */

.categories {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 2.5rem;
}

.category-section {
    background: var(--bg-card);
    border: 1px solid var(--purple-border);
    border-radius: 8px;
    overflow: hidden;
}

.category-section.category-passed {
    border-color: rgba(34, 197, 94, 0.15);
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    background: var(--purple-bg-faint);
    border-bottom: 1px solid var(--purple-border);
}

.category-passed .category-header {
    background: rgba(34, 197, 94, 0.04);
    border-bottom-color: rgba(34, 197, 94, 0.1);
}

.category-name {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--text-heading);
    font-weight: 600;
    margin: 0;
    letter-spacing: 0.02em;
}

.category-score {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.category-checks {
    padding: 4px 0;
}

.check-item {
    border-bottom: 1px solid var(--purple-border-light, rgba(120, 80, 200, 0.06));
}

.check-item:last-child {
    border-bottom: none;
}

.check-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    cursor: pointer;
    transition: background 0.15s;
}

.check-row:hover {
    background: var(--bg-white-05, rgba(255, 255, 255, 0.03));
}

.check-icon {
    font-size: 0.9rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.check-pass .check-icon {
    color: #22c55e;
}

.check-fail .check-icon {
    color: #ef4444;
}

.check-desc {
    flex: 1;
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--text-body);
}

.check-points {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    color: var(--text-muted);
    flex-shrink: 0;
}

.check-toggle {
    width: 16px;
    text-align: center;
    flex-shrink: 0;
    font-size: 0.7rem;
    color: var(--text-dim);
    transition: transform 0.2s;
}

.check-toggle::after {
    content: '\25BE';
}

.check-item.open .check-toggle {
    transform: rotate(180deg);
}

.check-expanded {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease, padding 0.25s ease;
    padding: 0 20px 0 50px;
}

.check-item.open .check-expanded {
    max-height: 200px;
    padding: 0 20px 12px 50px;
}

.check-why {
    font-family: var(--font-body);
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0 0 6px;
}

.check-detail {
    font-family: var(--font-body);
    font-size: 0.78rem;
    color: var(--text-dim);
    line-height: 1.4;
    margin: 0 0 6px;
    padding: 0;
}

.check-links {
    display: flex;
    gap: 16px;
}

.check-ref {
    font-family: var(--font-heading);
    font-size: 0.78rem;
    color: var(--purple-light);
    text-decoration: none;
    transition: color 0.2s;
}

.check-ref:hover {
    color: var(--purple-lighter);
}


/* ==========================
 * Privacy — Recommendations
 * ========================== */

.recommendations {
    max-width: 720px;
    margin-bottom: 3rem;
}

.recommendations h2 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--text-heading);
    margin-bottom: 1rem;
}

.recommendation-list {
    padding-left: 1.2rem;
    margin: 0;
}

.recommendation-list li {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-body);
    line-height: 1.6;
    padding: 4px 0;
}

.recommendation-list li::marker {
    color: var(--purple-light);
}


/* ==========================
 * Privacy — Specification Page
 * ========================== */

.spec-content {
    max-width: 760px;
    margin: 0 auto 3rem;
}

.spec-header {
    margin-bottom: 1.5rem;
}

.spec-body {
    line-height: 1.8;
}


/* ==========================
 * Mobile Responsive
 * ========================== */

@media (max-width: 768px) {
    .result-overview {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .score-circle {
        width: 100px;
        height: 100px;
    }

    .score-number {
        font-size: 1.5rem;
    }

    .result-domain {
        font-size: 1.3rem;
    }

    .scan-input-group {
        flex-direction: column;
    }

    .check-row {
        padding: 8px 12px;
    }

    .check-expanded {
        padding-left: 42px;
    }

    .check-item.open .check-expanded {
        padding-left: 42px;
    }

    .category-header {
        padding: 12px 12px;
    }

    .embed-row {
        flex-wrap: wrap;
    }

    .embed-label {
        min-width: auto;
    }

    .embed-code {
        width: 100%;
        order: 1;
    }

    .embed-copy-btn {
        order: 2;
        margin-left: auto;
    }
}
