/* =============================================================================
   Policy Pages Styles
   Uses centralized color scheme from theme.css (--theme-* variables)
   Matches contact page structure for consistency
   All styles are scoped to .policy-page to prevent conflicts

   Standard background color: #fef2f2 (light rose)
   ============================================================================= */

/* =============================================================================
   Page Layout
   ============================================================================= */

.policy-page {
    padding: 0;
    background-color: #ffffff;
    min-height: 100vh;
    font-size: 1rem;
}

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

/* =============================================================================
   Page Header - Matches contact page exactly
   ============================================================================= */

.policy-header {
    padding: 2.5rem 0 2rem;
    text-align: center;
}

.policy-title {
    font-family: var(--font-family-heading);
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--theme-text-primary, #1f2937);
    margin: 0 0 0.75rem;
    letter-spacing: -0.02em;
}

.policy-description {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--theme-text-muted, #6b7280);
    max-width: 600px;
    margin: 0 auto;
}

/* =============================================================================
   Content Wrapper
   ============================================================================= */

.policy-content {
    padding: 2rem 0 4rem;
}

.policy-content-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

/* =============================================================================
   Last Updated Badge
   ============================================================================= */

.policy-last-updated {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--theme-text-muted, #6b7280);
    background: #fef2f2;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    margin-bottom: 2rem;
}

/* =============================================================================
   Section Styles - Matches contact page
   ============================================================================= */

.policy-section {
    margin-bottom: 2.5rem;
}

.policy-section-title {
    font-family: var(--font-family-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--theme-text-primary, #1f2937);
    margin: 0 0 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--theme-border-light, #e5e7eb);
}

.policy-section p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--theme-text-secondary, #4b5563);
    margin: 0 0 1rem;
}

.policy-section p:last-child {
    margin-bottom: 0;
}

/* =============================================================================
   Summary Box - Quick highlights at top
   ============================================================================= */

.policy-summary {
    background: #fef2f2;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.policy-summary-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--theme-text-primary, #1f2937);
    margin: 0 0 1rem;
}

.policy-summary ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.policy-summary li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 1rem;
    color: var(--theme-text-secondary, #4b5563);
    line-height: 1.5;
}

.policy-summary li svg {
    width: 20px;
    height: 20px;
    color: var(--theme-accent-success, #059669);
    flex-shrink: 0;
    margin-top: 2px;
}

/* =============================================================================
   Table of Contents
   ============================================================================= */

.policy-toc {
    background: #fef2f2;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.policy-toc-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--theme-text-primary, #1f2937);
    margin: 0 0 0.75rem;
}

.policy-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.policy-toc-list li a {
    font-size: 0.875rem;
    color: var(--theme-primary, #e43131);
    text-decoration: none;
    transition: color 150ms ease;
}

.policy-toc-list li a:hover {
    color: var(--theme-primary-dark, #c52a2a);
    text-decoration: underline;
}

/* =============================================================================
   Highlight Box
   ============================================================================= */

.policy-highlight {
    background: #fef2f2;
    border-left: 4px solid var(--theme-primary, #e43131);
    padding: 1rem 1.25rem;
    border-radius: 0 0.375rem 0.375rem 0;
    margin: 1rem 0;
}

.policy-highlight p {
    margin: 0;
    color: var(--theme-text-primary, #1f2937);
    font-weight: 500;
}

/* =============================================================================
   Notice Box
   ============================================================================= */

.policy-notice {
    background: #fef2f2;
    border: 1px solid var(--theme-border-light, #e5e7eb);
    border-radius: 0.5rem;
    padding: 1.25rem;
    margin: 1.5rem 0;
}

.policy-notice-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--theme-text-primary, #1f2937);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.policy-notice p {
    font-size: 0.875rem;
    color: var(--theme-text-secondary, #4b5563);
    margin: 0;
}

/* =============================================================================
   Lists
   ============================================================================= */

.policy-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.policy-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 1rem;
    color: var(--theme-text-secondary, #4b5563);
    line-height: 1.5;
    padding-left: 1rem;
    position: relative;
}

.policy-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background: var(--theme-primary, #e43131);
    border-radius: 9999px;
}

.policy-list li svg {
    width: 20px;
    height: 20px;
    color: var(--theme-accent-success, #059669);
    flex-shrink: 0;
    margin-top: 2px;
}

/* When list items have SVG icons, remove the bullet */
.policy-list li:has(svg)::before {
    display: none;
}

.policy-list li:has(svg) {
    padding-left: 0;
}

/* =============================================================================
   Numbered List
   ============================================================================= */

.policy-numbered-list {
    counter-reset: policy-counter;
    list-style: none;
    padding: 0;
    margin: 1rem 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.policy-numbered-list li {
    counter-increment: policy-counter;
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: #fef2f2;
    border-radius: 0.5rem;
    border: 1px solid var(--theme-border-light, #e5e7eb);
}

.policy-numbered-list li::before {
    content: counter(policy-counter);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    min-width: 32px;
    background: var(--theme-primary, #e43131);
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 9999px;
}

.policy-numbered-list .list-content {
    flex: 1;
}

.policy-numbered-list .list-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--theme-text-primary, #1f2937);
    margin-bottom: 0.25rem;
}

.policy-numbered-list .list-text {
    font-size: 0.875rem;
    color: var(--theme-text-secondary, #4b5563);
    line-height: 1.7;
}

/* =============================================================================
   Card Grid - Matches contact page
   ============================================================================= */

.policy-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

.policy-card {
    background: #ffffff;
    border: 1px solid var(--theme-border-light, #e5e7eb);
    border-radius: 0.5rem;
    padding: 1.25rem;
    transition: all 200ms ease;
}

.policy-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border-color: #fecaca;
}

.policy-card h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--theme-text-primary, #1f2937);
    margin: 0 0 0.5rem;
}

.policy-card p {
    font-size: 0.875rem;
    color: var(--theme-text-muted, #6b7280);
    line-height: 1.7;
    margin: 0;
}

/* =============================================================================
   Contact Box
   ============================================================================= */

.policy-contact-box {
    background: #fef2f2;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin: 2rem 0;
    text-align: center;
}

.policy-contact-box h3 {
    font-family: var(--font-family-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--theme-text-primary, #1f2937);
    margin: 0 0 0.5rem;
}

.policy-contact-box p {
    font-size: 1rem;
    color: var(--theme-text-secondary, #4b5563);
    margin: 0 0 1rem;
}

.policy-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--theme-primary, #e43131);
    text-decoration: none;
    transition: color 150ms ease;
}

.policy-contact-link:hover {
    color: var(--theme-primary-dark, #c52a2a);
    text-decoration: underline;
}

/* =============================================================================
   CTA Section
   ============================================================================= */

.policy-cta {
    background: #fef2f2;
    border-radius: 0.75rem;
    padding: 2rem;
    margin-top: 2.5rem;
    text-align: center;
}

.policy-cta h3 {
    font-family: var(--font-family-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--theme-text-primary, #1f2937);
    margin: 0 0 0.5rem;
}

.policy-cta p {
    font-size: 1rem;
    color: var(--theme-text-muted, #6b7280);
    margin: 0 0 1.5rem;
}

.policy-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.policy-btn-primary,
.policy-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 0.375rem;
    transition: all 200ms ease;
}

.policy-btn-primary {
    background: var(--theme-primary, #e43131);
    color: #ffffff;
}

.policy-btn-primary:hover {
    background: var(--theme-primary-dark, #c52a2a);
    transform: translateY(-1px);
}

.policy-btn-secondary {
    background: #ffffff;
    color: var(--theme-text-primary, #1f2937);
    border: 1px solid var(--theme-border-default, #d1d5db);
}

.policy-btn-secondary:hover {
    background: var(--theme-bg-muted, #e5e7eb);
}

/* =============================================================================
   Responsive Styles
   ============================================================================= */

@media (max-width: 768px) {
    .policy-header {
        padding: 2rem 0 1.5rem;
    }

    .policy-title {
        font-size: 2rem;
    }

    .policy-description {
        font-size: 1rem;
    }

    .policy-section-title {
        font-size: 1.25rem;
    }

    .policy-grid {
        grid-template-columns: 1fr;
    }

    .policy-cta {
        padding: 1.5rem;
    }

    .policy-cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .policy-btn-primary,
    .policy-btn-secondary {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .policy-title {
        font-size: 1.75rem;
    }

    .policy-summary {
        padding: 1rem;
    }

    .policy-numbered-list li {
        flex-direction: column;
        align-items: flex-start;
    }

    .policy-numbered-list li::before {
        margin-bottom: 0.5rem;
    }

    .policy-card {
        padding: 1rem;
    }
}
