/* ============================================
   CSS Variables & Reset
   ============================================ */
:root {
    --primary: #910B06;
    --primary-dark: #8B3214;
    --accent: #F5A623;
    --background: #FAF7F2;
    --surface: #FFFFFF;
    --text-dark: #2D2D2D;
    --text-light: #757575;
    --error: #D32F2F;
    --success: #388E3C;
    --divider: #E0E0E0;
    --shadow: rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--background);
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   Container
   ============================================ */
.container {
    max-width: 800px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ============================================
   Header
   ============================================ */
.header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 24px 20px;
    box-shadow: 0 2px 8px var(--shadow);
}

.header-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.icon-wrapper {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icon {
    width: 28px;
    height: 28px;
    color: white;
}

.header-text {
    flex: 1;
}

.title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
    letter-spacing: -0.02em;
}

.subtitle {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 400;
}

/* ============================================
   Loading State
   ============================================ */
.loading-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--divider);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    margin-top: 16px;
    color: var(--text-light);
    font-size: 14px;
}

/* ============================================
   Error State
   ============================================ */
.error-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.error-icon {
    width: 56px;
    height: 56px;
    color: var(--error);
    margin-bottom: 16px;
}

.error-text {
    color: var(--text-light);
    font-size: 15px;
    margin-bottom: 20px;
}

.retry-btn {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.retry-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(145, 11, 6, 0.3);
}

.retry-btn:active {
    transform: translateY(0);
}

/* ============================================
   Empty State
   ============================================ */
.empty-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.empty-icon {
    width: 56px;
    height: 56px;
    color: #BDBDBD;
    margin-bottom: 16px;
}

.empty-text {
    color: var(--text-light);
    font-size: 15px;
}

/* ============================================
   Content
   ============================================ */
.content-container {
    flex: 1;
    padding: 20px;
}

.content-card {
    background: white;
    border-radius: 12px;
    border: 1px solid var(--divider);
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.policy-content {
    font-size: 14px;
    color: var(--text-dark);
    line-height: 1.85;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.policy-content h1,
.policy-content h2,
.policy-content h3 {
    margin-top: 24px;
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--text-dark);
}

.policy-content h1 {
    font-size: 24px;
}

.policy-content h2 {
    font-size: 20px;
}

.policy-content h3 {
    font-size: 16px;
}

.policy-content p {
    margin-bottom: 16px;
}

.policy-content ul,
.policy-content ol {
    margin-left: 24px;
    margin-bottom: 16px;
}

.policy-content li {
    margin-bottom: 8px;
}

.policy-content a {
    color: var(--primary);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.policy-content a:hover {
    border-bottom-color: var(--primary);
}

.policy-content strong {
    font-weight: 600;
    color: var(--text-dark);
}

.last-updated {
    margin-top: 16px;
    padding: 12px 16px;
    background: rgba(145, 11, 6, 0.05);
    border-radius: 8px;
    border-left: 3px solid var(--primary);
}

.last-updated p {
    font-size: 12px;
    color: var(--text-light);
    margin: 0;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: white;
    border-top: 1px solid var(--divider);
    padding: 20px;
    text-align: center;
    margin-top: auto;
}

.footer p {
    font-size: 13px;
    color: var(--text-light);
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 768px) {
    .header {
        padding: 20px 16px;
    }

    .title {
        font-size: 18px;
    }

    .subtitle {
        font-size: 12px;
    }

    .content-container {
        padding: 16px;
    }

    .content-card {
        padding: 20px;
    }

    .policy-content {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .header-content {
        gap: 12px;
    }

    .icon-wrapper {
        width: 40px;
        height: 40px;
    }

    .icon {
        width: 24px;
        height: 24px;
    }

    .content-card {
        padding: 16px;
    }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .header,
    .footer {
        display: none;
    }

    .content-card {
        border: none;
        box-shadow: none;
    }

    body {
        background: white;
    }
}
