/* Pages CSS - Styles for auxiliary pages (About, Privacy Policy, Terms of Service, Cookie Policy) */

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

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

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

.page-nav {
    display: flex;
    gap: 32px;
}

.page-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.page-nav a:hover,
.page-nav a.active {
    color: var(--primary-color);
    background-color: rgba(99, 102, 241, 0.1);
}

/* Page Hero */
.page-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.page-hero h1 {
    color: white;
    margin-bottom: 16px;
    font-size: 3rem;
}

.page-hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    margin: 0;
}

/* Content Sections */
.content-section {
    padding: 80px 0;
}

.content-section.alt-bg {
    background-color: var(--background-gray);
}

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

.content-block h2 {
    text-align: left;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.content-block p {
    font-size: 1.125rem;
    line-height: 1.75;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* Story Section Images */
.story-hero {
    margin-bottom: 40px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.story-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Mission Section Images */
.mission-visual {
    margin-bottom: 40px;
    text-align: center;
}

.mission-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Expertise Section Images */
.expertise-visual {
    margin-bottom: 40px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.expertise-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Choose Us Section Images */
.choose-us-visual {
    margin-bottom: 40px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.choose-us-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Mission Points */
.mission-points {
    margin-top: 40px;
}

.mission-point {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 32px;
}

.mission-point svg {
    flex-shrink: 0;
    margin-top: 4px;
}

.mission-point h3 {
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 1.25rem;
}

.mission-point p {
    margin: 0;
    font-size: 1rem;
}

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

.value-card {
    background: white;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    text-align: center;
    border: 1px solid var(--border-color);
}

.value-card svg {
    margin-bottom: 20px;
}

.value-card h3 {
    color: var(--text-primary);
    margin-bottom: 12px;
    font-size: 1.25rem;
}

.value-card p {
    margin: 0;
    font-size: 1rem;
    color: var(--text-secondary);
}

/* Expertise Areas */
.expertise-areas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
    margin-top: 40px;
}

.expertise-area {
    background: white;
    padding: 24px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.expertise-area h3 {
    color: var(--text-primary);
    margin-bottom: 12px;
    font-size: 1.125rem;
}

.expertise-area p {
    margin: 0;
    font-size: 1rem;
    color: var(--text-secondary);
}

/* Why Choose Us Grid */
.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
    margin-top: 40px;
}

.why-choose-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.number {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
    flex-shrink: 0;
}

.why-choose-item h3 {
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 1.125rem;
}

.why-choose-item p {
    margin: 0;
    font-size: 1rem;
    color: var(--text-secondary);
}

/* Legal Content */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-section {
    margin-bottom: 48px;
}

.legal-section h2 {
    color: var(--text-primary);
    font-size: 1.75rem;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 8px;
}

.legal-section h3 {
    color: var(--text-primary);
    font-size: 1.25rem;
    margin-bottom: 16px;
    margin-top: 24px;
}

.legal-section p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.legal-section ul {
    margin: 16px 0;
    padding-left: 24px;
}

.legal-section li {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.legal-section a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.legal-section a:hover {
    text-decoration: underline;
}

/* Cookie Categories */
.cookie-table {
    margin-top: 32px;
}

.cookie-category {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
}

.cookie-category h3 {
    color: var(--text-primary);
    font-size: 1.25rem;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

.cookie-category p {
    margin-bottom: 12px;
    font-size: 1rem;
}

.cookie-category p strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Cookie Banner for Pages */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-color);
    padding: 20px;
    z-index: 1000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-banner.show {
    transform: translateY(0);
}

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

.cookie-banner-text {
    flex: 1;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

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

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

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

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

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

.cookie-btn-accept:hover {
    background-color: #5B5FE5;
}

.cookie-btn-reject {
    background-color: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

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

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

.cookie-btn-customize:hover {
    background-color: rgba(99, 102, 241, 0.1);
}

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

.cookie-modal.show {
    display: flex;
}

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

.cookie-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.cookie-modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.cookie-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
    line-height: 1;
}

.cookie-modal-close:hover {
    color: var(--text-primary);
}

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

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.cookie-category-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 24px;
}

.cookie-toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.cookie-toggle input:checked + .cookie-toggle-slider {
    background-color: var(--primary-color);
}

.cookie-toggle input:checked + .cookie-toggle-slider:before {
    transform: translateX(26px);
}

.cookie-toggle input:disabled + .cookie-toggle-slider {
    background-color: var(--success-color);
    cursor: not-allowed;
}

.cookie-category-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

.cookie-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.cookie-modal-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cookie-modal-btn-save {
    background-color: var(--primary-color);
    color: white;
}

.cookie-modal-btn-save:hover {
    background-color: #5B5FE5;
}

.cookie-modal-btn-cancel {
    background-color: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.cookie-modal-btn-cancel:hover {
    background-color: var(--background-gray);
}

/* Responsive Design for Pages */
@media (max-width: 768px) {
    .page-hero {
        padding: 60px 0;
    }
    
    .page-hero h1 {
        font-size: 2.25rem;
    }
    
    .content-section {
        padding: 60px 0;
    }
    
    .header-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .page-nav {
        gap: 20px;
    }
    
    .values-grid,
    .expertise-areas,
    .why-choose-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .mission-point,
    .why-choose-item {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .legal-section h2 {
        font-size: 1.5rem;
    }
    
    .cookie-category {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .page-hero h1 {
        font-size: 2rem;
    }
    
    .page-hero p {
        font-size: 1.125rem;
    }
    
    .value-card,
    .expertise-area,
    .cookie-category {
        padding: 20px;
    }
    
    .story-hero,
    .mission-visual,
    .expertise-visual,
    .choose-us-visual {
        margin-bottom: 30px;
    }
    
    .legal-section {
        margin-bottom: 32px;
    }
    
    .legal-section ul {
        padding-left: 20px;
    }

    .cookie-banner-content {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .cookie-banner-actions {
        justify-content: center;
        flex-wrap: wrap;
    }

    .cookie-btn {
        flex: 1;
        min-width: 100px;
    }

    .cookie-modal-content {
        padding: 24px;
        margin: 10px;
    }

    .cookie-modal-actions {
        flex-direction: column;
    }

    .cookie-modal-btn {
        width: 100%;
    }
}