/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette */
    --orange-50: #fff7ed;
    --orange-100: #ffedd5;
    --orange-200: #fed7aa;
    --orange-500: #f97316;
    --orange-600: #ea580c;
    --red-50: #fef2f2;
    --red-500: #ef4444;
    --red-600: #dc2626;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-400: #9ca3af;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --white: #ffffff;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    
    /* Typography */
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Border Radius */
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--gray-900);
    background: linear-gradient(135deg, var(--orange-50) 0%, var(--white) 50%, var(--red-50) 100%);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, var(--orange-600) 0%, var(--red-600) 100%);
    color: var(--white);
    padding: var(--spacing-2xl) 0;
    animation: fadeInDown var(--transition-slow);
}

.header-content {
    max-width: 56rem;
    margin: 0 auto;
    text-align: center;
}

.icon-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 5rem;
    height: 5rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-full);
    margin-bottom: var(--spacing-md);
    animation: scaleIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.2s backwards;
}

.icon-circle .icon {
    width: 2.5rem;
    height: 2.5rem;
}

.header-title {
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.025em;
}

.header-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.25rem);
    color: rgba(255, 237, 213, 0.95);
    max-width: 42rem;
    margin: 0 auto var(--spacing-sm);
    line-height: 1.7;
}

.header-date {
    font-size: 0.875rem;
    color: rgba(254, 215, 170, 0.9);
    margin-top: var(--spacing-sm);
}

/* Main Content */
.main-content {
    flex: 1;
    padding: var(--spacing-xl) 0;
}

.main-content .container {
    max-width: 56rem;
}

/* Introduction Section */
.intro-section {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    border: 1px solid var(--orange-100);
    animation: fadeInUp var(--transition-slow) 0.3s backwards;
}

.intro-text {
    color: var(--gray-700);
    font-size: 1.125rem;
    line-height: 1.8;
}

/* Policy Sections */
.policy-section {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    border: 1px solid var(--gray-100);
    transition: box-shadow var(--transition-base);
    animation: fadeInUp var(--transition-slow) backwards;
}

.policy-section:hover {
    box-shadow: var(--shadow-xl);
}

.policy-section:nth-child(2) { animation-delay: 0.4s; }
.policy-section:nth-child(3) { animation-delay: 0.5s; }
.policy-section:nth-child(4) { animation-delay: 0.6s; }
.policy-section:nth-child(5) { animation-delay: 0.7s; }
.policy-section:nth-child(6) { animation-delay: 0.8s; }
.policy-section:nth-child(7) { animation-delay: 0.9s; }
.policy-section:nth-child(8) { animation-delay: 1.0s; }
.policy-section:nth-child(9) { animation-delay: 1.1s; }

.section-header {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.section-icon {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, var(--orange-500) 0%, var(--red-500) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
}

.section-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    stroke: var(--white);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-top: 0.25rem;
}

.section-content {
    margin-left: 4rem;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.content-item {
    animation: fadeIn var(--transition-base);
}

.item-subtitle {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: var(--spacing-xs);
}

.item-text {
    color: var(--gray-600);
    line-height: 1.7;
}

/* Updates Section */
.updates-section {
    background: linear-gradient(135deg, var(--orange-50) 0%, var(--red-50) 100%);
    border-radius: var(--radius-xl);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    border: 2px solid var(--orange-200);
    animation: fadeInUp var(--transition-slow) 1.2s backwards;
}

.updates-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--spacing-sm);
}

.updates-text {
    color: var(--gray-700);
    line-height: 1.7;
    margin-bottom: var(--spacing-sm);
}

.updates-text:last-child {
    margin-bottom: 0;
}

/* Back Button */
.back-button-wrapper {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    animation: fadeIn var(--transition-slow) 1.4s backwards;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--orange-600) 0%, var(--red-600) 100%);
    color: var(--white);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
}

.back-button:hover {
    box-shadow: var(--shadow-xl);
    transform: scale(1.05);
}

.back-button:active {
    transform: scale(0.98);
}

/* Footer */
.footer {
    background: var(--gray-900);
    color: var(--white);
    padding: var(--spacing-lg) 0;
    margin-top: var(--spacing-xl);
}

.footer-text {
    text-align: center;
    color: var(--gray-400);
    font-size: 0.875rem;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .header {
        padding: var(--spacing-xl) 0;
    }
    
    .icon-circle {
        width: 4rem;
        height: 4rem;
    }
    
    .icon-circle .icon {
        width: 2rem;
        height: 2rem;
    }
    
    .section-content {
        margin-left: 0;
        margin-top: var(--spacing-sm);
    }
    
    .section-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .policy-section {
        padding: var(--spacing-md);
    }
    
    .intro-section {
        padding: var(--spacing-md);
    }
    
    .updates-section {
        padding: var(--spacing-md);
    }
}

@media (max-width: 480px) {
    .header-title {
        font-size: 2rem;
    }
    
    .header-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.25rem;
    }
    
    .item-subtitle {
        font-size: 1rem;
    }
    
    .intro-text {
        font-size: 1rem;
    }
}

/* Print Styles */
@media print {
    .back-button-wrapper,
    .footer {
        display: none;
    }
    
    .policy-section,
    .intro-section,
    .updates-section {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid var(--gray-300);
    }
    
    body {
        background: var(--white);
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus Styles for Accessibility */
a:focus,
button:focus {
    outline: 2px solid var(--orange-500);
    outline-offset: 2px;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection Styles */
::selection {
    background: var(--orange-200);
    color: var(--gray-900);
}

::-moz-selection {
    background: var(--orange-200);
    color: var(--gray-900);
}
