/* Auxiliary Pages CSS - About Us, Privacy Policy, Terms of Service, Cookie Policy */

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #334155;
    background-color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 16px;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 16px;
    line-height: 1.5;
}

ul, ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

li {
    margin-bottom: 8px;
}

/* Color System */
:root {
    --primary: #2563EB;
    --primary-hover: #1D4ED8;
    --secondary: #0D9488;
    --secondary-hover: #0F766E;
    --accent: #EA580C;
    --accent-hover: #DC2626;
    --success: #059669;
    --warning: #D97706;
    --error: #DC2626;
    --gray-50: #F8FAFC;
    --gray-100: #F1F5F9;
    --gray-200: #E2E8F0;
    --gray-300: #CBD5E1;
    --gray-400: #94A3B8;
    --gray-500: #64748B;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1E293B;
    --gray-900: #0F172A;
}

/* Header */
.header {
    background-color: white;
    border-bottom: 1px solid var(--gray-200);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.header-logo-img {
    width: 40px;
    height: 40px;
}

.header-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.back-to-home {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.back-to-home:hover {
    background-color: var(--gray-100);
}

/* Main Content */
.main-content {
    padding: 60px 0;
    min-height: calc(100vh - 200px);
}

.page-header {
    text-align: center;
    margin-bottom: 60px;
}

.page-title {
    font-size: 3rem;
    color: var(--gray-800);
    margin-bottom: 16px;
}

.page-subtitle {
    font-size: 1.2rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

/* Content Sections */
.content-section {
    margin-bottom: 48px;
    padding: 32px;
    background-color: white;
    border-radius: 12px;
    border: 1px solid var(--gray-200);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.content-section h2 {
    color: var(--gray-800);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
}

.content-section h3 {
    color: var(--gray-700);
    margin-top: 24px;
    margin-bottom: 16px;
}

.content-section p {
    color: var(--gray-600);
    margin-bottom: 16px;
}

.content-section ul li,
.content-section ol li {
    color: var(--gray-600);
}

/* About Us Specific Styles */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-top: 32px;
}

.team-member {
    text-align: center;
    padding: 24px;
    background-color: var(--gray-50);
    border-radius: 12px;
}

.member-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: white;
    font-size: 2rem;
    font-weight: 600;
}

.member-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 8px;
}

.member-role {
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 12px;
}

.member-bio {
    color: var(--gray-600);
    font-size: 0.95rem;
    margin: 0;
}

/* Story and Technology Image Styles */
.story-image-container,
.tech-image-container {
    margin: 24px 0;
    text-align: center;
}

.story-img,
.tech-img {
    width: 100%;
    max-width: 600px;
    height: 300px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Values Grid */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.value-item {
    padding: 24px;
    background-color: var(--gray-50);
    border-radius: 12px;
    text-align: center;
}

.value-icon {
    width: 48px;
    height: 48px;
    background-color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: white;
    font-size: 1.5rem;
}

.value-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 8px;
}

.value-description {
    color: var(--gray-600);
    font-size: 0.95rem;
    margin: 0;
}

/* Legal Pages Specific Styles */
.legal-section {
    margin-bottom: 40px;
}

.legal-section h3 {
    color: var(--primary);
    margin-bottom: 16px;
}

.legal-section p {
    margin-bottom: 12px;
}

.legal-section ul {
    margin-left: 20px;
}

.legal-section li {
    margin-bottom: 8px;
}

.contact-info {
    background-color: var(--gray-50);
    padding: 24px;
    border-radius: 12px;
    margin-top: 32px;
}

.contact-info h4 {
    color: var(--gray-800);
    margin-bottom: 16px;
}

.contact-info p {
    margin-bottom: 8px;
}

.contact-info a {
    color: var(--primary);
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    background-color: var(--gray-800);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo-img {
    width: 40px;
    height: 40px;
}

.footer-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 32px;
}

.footer-column h4 {
    color: white;
    margin-bottom: 16px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column li {
    margin-bottom: 8px;
}

.footer-column a {
    color: var(--gray-300);
    text-decoration: none;
}

.footer-column a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid var(--gray-700);
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    color: var(--gray-400);
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-title {
        font-size: 2.5rem;
    }
    
    .header-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .content-section {
        padding: 24px 16px;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 2rem;
    }
    
    .content-section {
        padding: 20px 12px;
    }
    
    .container {
        padding: 0 16px;
    }
}

/* Cookie Banner Styles */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: white;
    border-top: 1px solid var(--gray-200);
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 16px 0;
}

.cookie-banner.hidden {
    display: none;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.cookie-text {
    flex: 1;
}

.cookie-text p {
    margin: 0;
    color: var(--gray-700);
    font-size: 14px;
    line-height: 1.4;
}

.cookie-text a {
    color: var(--primary);
    text-decoration: none;
}

.cookie-text a:hover {
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.cookie-accept {
    background-color: var(--primary);
    color: white;
}

.cookie-accept:hover {
    background-color: var(--primary-hover);
}

.cookie-reject {
    background-color: var(--gray-200);
    color: var(--gray-700);
}

.cookie-reject:hover {
    background-color: var(--gray-300);
}

.cookie-customize {
    background-color: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.cookie-customize:hover {
    background-color: var(--primary);
    color: white;
}

/* Cookie Modal Styles */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cookie-modal.hidden {
    display: none;
}

.cookie-modal-content {
    background-color: white;
    border-radius: 12px;
    padding: 32px;
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
}

.cookie-modal-content h3 {
    color: var(--gray-800);
    margin-bottom: 24px;
    font-size: 1.5rem;
}

.cookie-category {
    margin-bottom: 20px;
    padding: 16px;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
}

.cookie-label {
    display: block;
    cursor: pointer;
}

.cookie-label input[type="checkbox"] {
    margin-right: 12px;
    transform: scale(1.2);
}

.cookie-title {
    display: block;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 4px;
}

.cookie-description {
    display: block;
    font-size: 14px;
    color: var(--gray-600);
    margin-left: 24px;
}

.cookie-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
}

/* Mobile Cookie Banner */
@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .cookie-actions {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .cookie-btn {
        flex: 1;
        min-width: 100px;
    }
    
    .cookie-modal-content {
        padding: 24px 16px;
        margin: 10px;
    }
    
    .cookie-modal-actions {
        flex-direction: column;
    }
    
    .cookie-modal-actions .cookie-btn {
        width: 100%;
    }
    
    .story-img,
    .tech-img {
        height: 250px;
    }
}