/* Policy pages shared styles - aligned with site theme */
.policy-page {
    color: var(--ink);
    background: transparent;
    scroll-behavior: smooth;
    position: relative;
    padding: 1rem 1rem;
}

.policy-page .main-content {
    padding: 1rem 1rem;
    max-width: 1400px;
    margin: 0 auto;
}

.policy-page .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* Policy Hero Section */
.policy-hero {
    margin: 2rem 0 2.5rem;
    padding: 0;
}

.policy-title {
    font-size: clamp(1.375rem, 1.15vw + 1.1rem, 1.75rem);
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.03em;
    margin: 0 0 0.75rem;
    background: linear-gradient(135deg, var(--ink) 0%, var(--active-border) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.policy-meta {
    color: var(--ink-2);
    font-size: var(--text-base, 14px);
    line-height: var(--sf-leading-body, 1.65);
    margin: 0;
    max-width: 65ch;
}

.policy-page h2 {
    font-size: clamp(1.1rem, 1.8vw, 1.3rem);
    font-weight: 700;
    margin: 2rem 0 0.75rem;
    color: var(--ink);
    line-height: 1.3;
}

.policy-page .section {
    margin: 1rem 0 1.5rem;
    color: var(--ink-2);
    line-height: 1.7;
    font-size: var(--text-base);
}

.policy-page .section p {
    margin: 0.75rem 0;
}

.policy-page .section .note {
    padding: 0.75rem 1rem;
    margin: 1rem 0;
    background: rgba(91, 67, 234, 0.08);
    border: 1px solid rgba(91, 67, 234, 0.15);
    border-radius: 8px;
    color: var(--ink-2);
    font-size: 0.9rem;
    line-height: 1.6;
}

.policy-callout {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin: 0 0 2rem;
    padding: 1.125rem 1.25rem;
    border-radius: 12px;
    line-height: 1.65;
}

.policy-callout--important {
    background: linear-gradient(135deg, rgba(234, 88, 12, 0.14) 0%, rgba(234, 88, 12, 0.06) 100%);
    border: 1px solid rgba(234, 88, 12, 0.35);
    box-shadow: 0 0 0 1px rgba(234, 88, 12, 0.08), 0 8px 24px rgba(234, 88, 12, 0.08);
}

.policy-callout__icon {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(234, 88, 12, 0.18);
    border: 1px solid rgba(234, 88, 12, 0.35);
    color: #ea580c;
    font-weight: 800;
    font-size: 1.125rem;
    line-height: 1;
}

.policy-callout__body {
    min-width: 0;
}

.policy-callout__title {
    margin: 0 0 0.5rem;
    font-weight: 700;
    font-size: 1rem;
    color: var(--ink);
}

.policy-callout__body p:last-child {
    margin: 0;
    color: var(--ink-2);
    font-size: 0.9375rem;
}

.policy-callout__body strong {
    color: var(--ink);
}

.policy-page .list {
    margin: 0.75rem 0 0 1.5rem;
    padding: 0;
    list-style: disc;
}

.policy-page .list li {
    margin: 0.5rem 0;
    line-height: 1.6;
}

.policy-page a {
    color: var(--brand);
    text-decoration: none;
    transition: color var(--transition-normal);
}

.policy-page a:hover {
    color: var(--brand-hover, #4c3bd8);
    text-decoration: underline;
}

.policy-page a:visited {
    color: var(--brand);
    opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 768px) {
    .policy-page .main-content {
        padding: 0.75rem;
    }
    
    .policy-page .container {
        padding: 0 var(--space-md);
    }
    
    .policy-hero {
        margin: 1.5rem 0 2rem;
    }
    
    .policy-title {
        font-size: 24px;
    }
    
    .policy-page h2 {
        font-size: 1.1rem;
        margin: 1.5rem 0 0.5rem;
    }
    
    .policy-page .section {
        margin: 0.75rem 0 1rem;
        font-size: var(--text-sm);
    }

    .policy-callout {
        flex-direction: row;
        gap: 0.875rem;
        padding: 1rem;
        margin-bottom: 1.5rem;
    }

    .policy-callout__icon {
        width: 1.75rem;
        height: 1.75rem;
        font-size: 1rem;
    }

    .policy-callout__title {
        font-size: 0.9375rem;
    }
}

/* Cookie Preferences Styles - Minimal Design */
.prefs {
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    padding: 1.5rem;
    background: transparent;
    margin: 1.5rem 0;
}

.pref-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    transition: background-color 0.2s ease;
}

.pref-row:first-child {
    border-top: none;
}

.pref-row:hover {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
}

.pref-title {
    font-weight: 600;
    color: var(--ink);
    font-size: var(--text-base);
    margin-bottom: 0.25rem;
}

.pref-desc {
    font-size: var(--text-sm);
    color: var(--ink-2);
    margin-top: 0.25rem;
    line-height: 1.5;
}

.toggle {
    appearance: none;
    width: 44px;
    height: 26px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius);
    position: relative;
    outline: none;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.toggle:checked {
    background: var(--brand);
    border-color: var(--brand);
}

.toggle:before {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    left: 3px;
    top: 2px;
    background: #fff;
    border-radius: 50%;
    transition: left 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle:checked:before {
    left: 21px;
}

.toggle:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.625rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    color: var(--ink);
    font-size: var(--text-base);
    font-weight: 500;
    transition: all 0.2s ease;
    font-family: var(--font-sans);
}

.btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
}

.btn.primary {
    background: var(--brand);
    color: #ffffff;
    border-color: var(--brand);
}

.btn.primary:hover {
    background: var(--brand-hover, #4c3bd8);
    border-color: var(--brand-hover, #4c3bd8);
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.prefs .note {
    font-size: var(--text-sm);
    color: var(--ink-2);
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    line-height: 1.5;
}

/* Responsive Design for Cookie Preferences */
@media (max-width: 768px) {
    .prefs {
        padding: 1rem;
        margin: 1rem 0;
    }
    
    .pref-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        padding: 0.875rem 0.5rem;
    }
    
    .toggle {
        align-self: flex-end;
    }
    
    .actions {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Legacy support for other policy pages */
.pref-row input.toggle { outline: none; }

