/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

:root {
    --primary-dark: #1e3c72;
    --primary: #2a5298;
    --accent: #f0db4f;
    --text-light: #ffffff;
    --card-bg: rgba(0, 0, 0, 0.4);
    --border-light: rgba(255, 255, 255, 0.1);
}

/* Global body styles */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: var(--text-light);
    text-align: center;
    animation: fadeIn 1.5s ease-out;
    padding: 20px;
    font-size: 14px;
    /* base text slightly smaller */
}

/* Fade-In Animation */
@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Global shared header style */
.page-header {
    margin: 30px 0;
}

.page-header h1 {
    font-size: 28px;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    color: var(--accent);
}

.page-header p {
    font-size: 16px;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

/* Back Button */
.back-button {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    backdrop-filter: blur(5px);
    z-index: 10;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.back-button:hover,
.back-button:focus {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-3px);
    outline: none;
}

/* Privacy Content */
.page-container {
    max-width: 900px;
    margin: 0 auto 40px;
    background: var(--card-bg);
    border-radius: 15px;
    padding: 30px;
    text-align: left;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-light);
}

.page-section {
    margin-bottom: 30px;
}

.page-section h2 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--accent);
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-section h3 {
    font-size: 18px;
    margin: 20px 0 10px;
    color: var(--accent);
}

.page-section p {
    margin-bottom: 15px;
    line-height: 1.6;
    font-size: 15px;
}

.page-section ul,
.page-section ol {
    margin: 15px 0;
    padding-left: 20px;
}

.page-section li {
    margin-bottom: 10px;
    line-height: 1.5;
}

.highlight {
    background: rgba(240, 219, 79, 0.1);
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid var(--accent);
    margin: 20px 0;
}

/* Footer */
footer {
    margin-top: 25px;
    font-size: 14px;
    opacity: 0.8;
    animation: slideUp 1.5s ease-out 1s;
    animation-fill-mode: both;
}

.footer-links {
    margin-top: 10px;
}

.footer-links a {
    color: var(--accent);
    text-decoration: none;
    margin: 0 5px;
    transition: all 0.3s ease;
    padding: 2px 5px;
    border-radius: 3px;
}

.footer-links a:hover,
.footer-links a:focus {
    opacity: 0.8;
    text-decoration: underline;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
}

/* Carbon Rating Styles */
.carbon-rating {
    background: rgba(0, 192, 144, 0.1);
    padding: 20px;
    margin: 20px 0;
    border-radius: 10px;
    text-align: center;
    border: 1px solid rgba(0, 192, 144, 0.3);
}

.carbon-content h3 {
    color: #00c090;
    margin-bottom: 10px;
}

.carbon-badge {
    display: inline-flex;
    align-items: center;
    background: #00c090;
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 8px;
    margin: 10px 0;
    transition: all 0.3s ease;
}

.carbon-badge:hover {
    background: #00a078;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 192, 144, 0.3);
}

.carbon-grade {
    font-size: 24px;
    font-weight: bold;
    margin-right: 10px;
    background: white;
    color: #00c090;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carbon-text {
    text-align: left;
    line-height: 1.3;
}

.carbon-text small {
    font-size: 11px;
    opacity: 0.9;
}

/* For the simple footer badge */
footer .carbon-badge {
    margin: 10px 0;
}

footer .carbon-badge img {
    height: 30px;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

footer .carbon-badge:hover img {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-container {
        padding: 20px;
    }

    .page-header h1 {
        font-size: 24px;
    }

    .page-section h2 {
        font-size: 20px;
    }

    .page-section h3 {
        font-size: 17px;
    }

    .back-button {
        top: 15px;
        left: 15px;
        padding: 8px 15px;
    }
}

@media (max-width: 480px) {
    .privacy-container {
        padding: 15px;
    }

    .privacy-header h1 {
        font-size: 22px;
    }

    .privacy-section h2 {
        font-size: 18px;
    }

    .privacy-section h3 {
        font-size: 16px;
    }

    .back-button {
        font-size: 13px;
        padding: 6px 12px;
    }
}