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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #2D2D2D;
    background-color: #FAFAFA;
}

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

/* Header */
.header {
    background: #FAFAFA;
    padding: 16px 0;
    border-bottom: 1px solid #E5E5E5;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.brand-name {
    font-size: 20px;
    font-weight: 700;
    color: #2D2D2D;
    text-decoration: none;
    transition: color 0.2s ease;
}

.brand-name:hover {
    color: #00D4AA;
}

/* Footer */
.footer {
    background: #2D2D2D;
    color: #FAFAFA;
    padding: 60px 0 24px;
}

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

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

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

.footer-section .logo {
    width: 32px;
    height: 32px;
}

.footer-section .brand-name {
    color: #FAFAFA;
    font-size: 18px;
}

.footer-section p {
    color: #CCCCCC;
    line-height: 1.6;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.link-column h4 {
    color: #FAFAFA;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}

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

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

.link-column a {
    color: #CCCCCC;
    text-decoration: none;
    transition: color 0.2s ease;
}

.link-column a:hover {
    color: #00D4AA;
}

.footer-bottom {
    border-top: 1px solid #444444;
    padding-top: 24px;
    text-align: center;
}

.footer-bottom p {
    color: #999999;
    font-size: 14px;
}

/* Auxiliary Pages Styles */

/* About Page Specific Styles */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    margin-bottom: 0;
}

.about-content.reverse {
    grid-template-columns: 1fr 1fr;
}

.about-content.reverse .about-visual {
    order: -1;
}

.about-text h2 {
    font-size: 32px;
    font-weight: 700;
    color: #2D2D2D;
    margin-bottom: 24px;
    line-height: 1.2;
}

.about-text p {
    font-size: 16px;
    line-height: 1.7;
    color: #666666;
    margin-bottom: 20px;
}

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

.about-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.placeholder-image {
    width: 100%;
    height: 280px;
    background: linear-gradient(135deg, #F5F5F5 0%, #E5E5E5 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999999;
    font-size: 16px;
    font-weight: 500;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

/* Page Header */
.page-header {
    padding: 80px 0 60px;
    background: linear-gradient(135deg, #FAFAFA 0%, #F5F5F5 100%);
    text-align: center;
}

.page-header h1 {
    font-size: 42px;
    font-weight: 800;
    color: #2D2D2D;
    margin-bottom: 16px;
    line-height: 1.2;
}

.page-header p {
    font-size: 18px;
    color: #666666;
    line-height: 1.5;
}

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

.content-section:nth-child(even) {
    background-color: #F8F9FA;
}

.content-section.alt {
    background-color: #F8F9FA;
}

.content-section h2 {
    font-size: 36px;
    font-weight: 700;
    color: #2D2D2D;
    margin-bottom: 24px;
    line-height: 1.2;
}

.content-section p {
    font-size: 16px;
    line-height: 1.7;
    color: #666666;
    margin-bottom: 24px;
}

.content-section p:last-child {
    margin-bottom: 0;
}

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

.value-item {
    background: white;
    padding: 32px 24px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.value-item h3 {
    font-size: 22px;
    font-weight: 600;
    color: #00D4AA;
    margin-bottom: 12px;
}

.value-item p {
    font-size: 16px;
    line-height: 1.6;
    color: #666666;
    margin-bottom: 0;
}

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

.legal-content h2 {
    font-size: 28px;
    font-weight: 700;
    color: #2D2D2D;
    margin: 40px 0 20px;
}

.legal-content h3 {
    font-size: 22px;
    font-weight: 600;
    color: #2D2D2D;
    margin: 32px 0 16px;
}

.legal-content h4 {
    font-size: 18px;
    font-weight: 600;
    color: #2D2D2D;
    margin: 24px 0 12px;
}

.legal-content p {
    margin-bottom: 16px;
}

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

.legal-content li {
    margin-bottom: 8px;
    color: #666666;
    line-height: 1.6;
}

.legal-content ol {
    margin: 16px 0 24px 0;
    padding-left: 24px;
}

.legal-content ol li {
    margin-bottom: 12px;
}

.legal-content strong {
    color: #2D2D2D;
    font-weight: 600;
}

.legal-content em {
    font-style: italic;
    color: #555555;
}

.legal-content blockquote {
    border-left: 4px solid #00D4AA;
    margin: 24px 0;
    padding: 16px 24px;
    background-color: #F8F9FA;
    border-radius: 0 8px 8px 0;
}

.legal-content blockquote p {
    margin-bottom: 0;
    color: #555555;
    font-style: italic;
}

.legal-content a {
    color: #00D4AA;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.legal-content a:hover {
    color: #00B894;
}

.legal-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.legal-content th,
.legal-content td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #E5E5E5;
}

.legal-content th {
    background-color: #F8F9FA;
    font-weight: 600;
    color: #2D2D2D;
}

.legal-content tr:last-child td {
    border-bottom: none;
}

.legal-content code {
    background-color: #F1F3F4;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 14px;
    color: #D63384;
}

.legal-content pre {
    background-color: #F8F9FA;
    border: 1px solid #E5E5E5;
    border-radius: 8px;
    padding: 16px;
    overflow-x: auto;
    margin: 24px 0;
}

.legal-content pre code {
    background: none;
    padding: 0;
    color: #2D2D2D;
}

/* Last Updated Info */
.last-updated {
    font-size: 14px;
    color: #999999;
    font-style: italic;
    margin-bottom: 32px;
    text-align: center;
}

/* Contact Info in Legal Pages */
.legal-contact {
    background: #F8F9FA;
    padding: 32px;
    border-radius: 12px;
    margin: 40px 0;
    text-align: center;
}

.legal-contact h3 {
    color: #2D2D2D;
    margin-bottom: 16px;
}

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

/* Responsive Design for Auxiliary Pages */
@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }

    .about-content.reverse .about-visual {
        order: 0;
    }

    .about-text h2 {
        font-size: 28px;
    }

    .about-illustration {
        max-width: 100%;
    }

    .placeholder-image {
        height: 200px;
        font-size: 14px;
    }

    .page-header {
        padding: 60px 0 40px;
    }

    .page-header h1 {
        font-size: 32px;
    }

    .page-header p {
        font-size: 16px;
    }

    .content-section {
        padding: 40px 0;
    }

    .content-section h2 {
        font-size: 28px;
    }

    .values-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .value-item {
        padding: 24px 20px;
    }

    .legal-content {
        padding: 0 8px;
    }

    .legal-content h2 {
        font-size: 24px;
    }

    .legal-content h3 {
        font-size: 20px;
    }

    .legal-content h4 {
        font-size: 18px;
    }

    .legal-content ul,
    .legal-content ol {
        padding-left: 20px;
    }

    .legal-content table {
        font-size: 14px;
    }

    .legal-content th,
    .legal-content td {
        padding: 8px 12px;
    }

    .legal-contact {
        padding: 24px 20px;
        margin: 24px 0;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 40px 0 30px;
    }

    .page-header h1 {
        font-size: 28px;
    }

    .content-section {
        padding: 32px 0;
    }

    .content-section h2 {
        font-size: 24px;
    }

    .value-item {
        padding: 20px 16px;
    }

    .legal-content pre {
        padding: 12px;
        font-size: 14px;
    }

    .legal-content blockquote {
        padding: 12px 16px;
        margin: 16px 0;
    }

    .legal-contact {
        padding: 20px 16px;
    }
}

/* Print Styles for Legal Pages */
@media print {
    .header,
    .footer {
        display: none;
    }

    .page-header {
        padding: 20px 0;
        background: none;
    }

    .content-section {
        padding: 20px 0;
        background: none !important;
    }

    .legal-content {
        font-size: 12px;
        line-height: 1.4;
        color: #000;
    }

    .legal-content h2,
    .legal-content h3,
    .legal-content h4 {
        color: #000;
        break-after: avoid;
    }

    .legal-content a {
        color: #000;
        text-decoration: underline;
    }

    .value-item {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}