/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', system-ui, sans-serif;
    line-height: 1.5;
    color: #1d1d1f;
    background: #f5f5f7;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    padding: 3rem 0 2rem 0;
    text-align: center;
}

.logo h1 {
    font-size: 2.2rem;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.subtitle {
    font-size: 1rem;
    color: #86868b;
    font-weight: 400;
}

/* Main content */
.main-content {
    flex: 1;
    padding: 2rem 0;
}

.welcome-section {
    text-align: center;
    margin-bottom: 3rem;
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.welcome-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.welcome-section p {
    font-size: 1rem;
    color: #86868b;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Documents grid */
.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.document-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.document-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.document-icon {
    width: 48px;
    height: 48px;
    background: #dd6b20;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
}

.document-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.document-card p {
    color: #86868b;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.document-meta {
    margin-bottom: 1.5rem;
}

.last-updated {
    font-size: 0.875rem;
    color: #86868b;
    font-weight: 400;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    min-width: 140px;
}

.btn-primary {
    background: #dd6b20;
    color: white;
}

.btn-primary:hover {
    background: #c05621;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #1d1d1f;
    color: white;
}

.btn-secondary:hover {
    background: #424245;
    transform: translateY(-1px);
}

/* Contact section */
.contact-section {
    background: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
}

.contact-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.contact-section p {
    color: #86868b;
    margin-bottom: 1.5rem;
}

.contact-info {
    display: flex;
    justify-content: center;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #dd6b20;
    text-decoration: none;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    background: rgba(221, 107, 32, 0.1);
    transition: all 0.2s ease;
}

.contact-link:hover {
    background: rgba(221, 107, 32, 0.15);
    transform: translateY(-1px);
}

/* Footer */
.footer {
    padding: 2rem 0;
    text-align: center;
    color: #86868b;
    font-size: 0.875rem;
}

/* Document pages styles */
.document-container {
    background: #ffffff;
    margin: 2rem auto;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    max-width: 800px;
}

.document-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #e2e8f0;
}

.document-header h1 {
    font-size: 2rem;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.document-header .last-updated {
    font-size: 1rem;
    color: #86868b;
    font-weight: 400;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #dd6b20;
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 2rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    background: rgba(221, 107, 32, 0.1);
    transition: all 0.2s ease;
}

.back-link:hover {
    background: rgba(221, 107, 32, 0.15);
}

.document-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1d1d1f;
    margin: 2rem 0 1rem 0;
    padding-top: 1rem;
    letter-spacing: -0.01em;
}

.document-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1d1d1f;
    margin: 1.5rem 0 0.75rem 0;
    letter-spacing: -0.01em;
}

.document-content p {
    color: #86868b;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.document-content ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.document-content li {
    color: #86868b;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.document-content strong {
    color: #1d1d1f;
    font-weight: 600;
}

.document-content hr {
    border: none;
    height: 1px;
    background: #d2d2d7;
    margin: 2rem 0;
}

.document-content .compliance-note {
    font-style: italic;
    color: #86868b;
    text-align: center;
    margin-top: 2rem;
    padding: 1rem;
    background: #f5f5f7;
    border-radius: 8px;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .logo h1 {
        font-size: 2rem;
    }
    
    .documents-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .document-card {
        padding: 1.5rem;
    }
    
    .document-container {
        margin: 1rem;
        padding: 2rem;
    }
    
    .document-header h1 {
        font-size: 2rem;
    }
    
    .welcome-section {
        padding: 1.5rem;
    }
    
    .contact-section {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.8rem;
    }
    
    .document-card {
        padding: 1rem;
    }
    
    .document-container {
        padding: 1.5rem;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}
