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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #ffffff;
    color: #333333;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.08);
}

/* Header Styles */
header {
    background-color: #ffffff;
    border-bottom: 2px solid #f0f0f0;
    padding: 2rem 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

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

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    height: 50px;
    width: auto;
    display: block;
}

.logo.error {
    display: none; /* Hide only if there's an error loading */
}

.logo-section h1 {
    font-size: 1.8rem;
    color: #1a1a1a;
    font-weight: 600;
}

.company-link {
    background-color: #0066cc;
    color: white;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.company-link:hover {
    background-color: #0052a3;
    transform: translateY(-2px);
}

/* Main Content */
main {
    flex: 1;
    padding: 3rem 2rem;
    background-color: #ffffff;
}

.policy-header {
    text-align: center;
    margin-bottom: 3rem;
}

.policy-header h2 {
    font-size: 2.5rem;
    color: #1a1a1a;
    margin-bottom: 2rem;
    font-weight: 600;
}

/* Toggle Switch */
.toggle-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.toggle-label {
    font-size: 1rem;
    font-weight: 500;
    color: #666666;
    transition: color 0.3s ease;
}

.toggle-label.active {
    color: #0066cc;
    font-weight: 600;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
    cursor: pointer;
}

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

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #0066cc;
    transition: 0.4s;
    border-radius: 34px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #00aa66;
}

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

/* Policy Content */
.policy-content {
    background-color: #fafafa;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    min-height: 400px;
}

.policy-text {
    word-wrap: break-word;
    font-size: 1rem;
    line-height: 1.8;
    color: #333333;
    animation: fadeIn 0.5s ease;
}

.policy-text.loading {
    text-align: center;
    color: #999999;
    font-style: italic;
}

/* Markdown Content Styling */
.policy-text h1,
.policy-text h2,
.policy-text h3,
.policy-text h4,
.policy-text h5,
.policy-text h6 {
    color: #1a1a1a;
    margin-top: 1.5em;
    margin-bottom: 0.75em;
    font-weight: 600;
    line-height: 1.3;
}

.policy-text h1 {
    font-size: 2rem;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 0.5rem;
}

.policy-text h2 {
    font-size: 1.75rem;
}

.policy-text h3 {
    font-size: 1.5rem;
    color: #0066cc;
}

.policy-text h4 {
    font-size: 1.25rem;
}

.policy-text h5 {
    font-size: 1.1rem;
}

.policy-text h6 {
    font-size: 1rem;
}

.policy-text p {
    margin-bottom: 1em;
    line-height: 1.8;
}

.policy-text a {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.policy-text a:hover {
    color: #0052a3;
    text-decoration: underline;
}

.policy-text strong {
    font-weight: 600;
    color: #1a1a1a;
}

.policy-text em {
    font-style: italic;
    color: #555555;
}

.policy-text ul,
.policy-text ol {
    margin-left: 1.5rem;
    margin-bottom: 1em;
}

.policy-text li {
    margin-bottom: 0.5em;
    line-height: 1.7;
}

.policy-text hr {
    border: none;
    border-top: 2px solid #e0e0e0;
    margin: 2rem 0;
}

.policy-text blockquote {
    border-left: 4px solid #0066cc;
    padding-left: 1rem;
    margin-left: 0;
    margin-right: 0;
    color: #555555;
    font-style: italic;
}

.policy-text code {
    background-color: #f0f0f0;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.policy-text pre {
    background-color: #f0f0f0;
    padding: 1rem;
    border-radius: 6px;
    overflow-x: auto;
    margin-bottom: 1em;
}

.policy-text pre code {
    background-color: transparent;
    padding: 0;
}

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

/* Footer */
footer {
    background-color: #f8f8f8;
    border-top: 2px solid #f0f0f0;
    padding: 2rem 2rem;
    margin-top: auto;
}

.footer-content {
    text-align: center;
    color: #666666;
    font-size: 0.9rem;
}

.footer-content p {
    margin: 0.5rem 0;
}

.footer-content a {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-content a:hover {
    color: #0052a3;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        box-shadow: none;
    }

    header {
        padding: 1.5rem 1rem;
    }

    .header-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .logo-section {
        flex-direction: column;
        gap: 0.5rem;
    }

    .logo-section h1 {
        font-size: 1.5rem;
    }

    main {
        padding: 2rem 1rem;
    }

    .policy-header h2 {
        font-size: 2rem;
    }

    .policy-content {
        padding: 1.5rem;
    }

    .toggle-container {
        flex-direction: column;
        gap: 0.75rem;
    }

    .toggle-label {
        font-size: 0.9rem;
    }

    footer {
        padding: 1.5rem 1rem;
    }
}

@media (max-width: 480px) {
    .policy-header h2 {
        font-size: 1.6rem;
    }

    .company-link {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}

