/* ====================== GLOBAL RESET & BOX MODEL ====================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.7;
    background: #f9f9f9;
    color: #333;
    padding: 2rem;
    margin: 0;
    overflow-x: hidden;
    max-width: 100%;
}

/* ====================== CONTAINER ====================== */
.container {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* ====================== TYPOGRAPHY & LISTS ====================== */
ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

li {
    margin: 0.8rem 0;
}

li strong {
    color: #FF8800;
}

/* ====================== NAVIGATION ====================== */
.policy-nav {
    background: #f8f9fa;
    padding: 12px 20px;
    margin-bottom: 25px;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 100;
    font-size: 14px;
    text-align: center;
}

.policy-nav a {
    margin: 0 10px;
    text-decoration: none;
    color: #0077FF;
}

/* ====================== META, OPERATOR & SUMMARY ====================== */
.meta {
    font-size: 12px;
    color: #888;
    margin: 0.2rem 0;
}

.operator {
    font-size: 13px;
    color: #666;
}

.centralized {
    font-size: 12px;
    color: #999;
}

.last-updated {
    font-size: 14px;
    color: #444;
    margin-top: 5px;
}

.summary-title {
    font-weight: bold;
    margin: 1rem 0 0.5rem;
}

.summary {
    padding-left: 1.2rem;
}

/* ====================== HEADER & SECTION TITLES ====================== */
h1 {
    font-size: 2rem;
    color: #0077FF;
    margin-bottom: 0.5rem;
}

.section-title {
    margin-top: 2rem;
    color: #0077FF;
    border-bottom: 2px solid #eee;
    padding-bottom: 0.3rem;
}

/* ====================== FOOTER & HOME LINK ====================== */
.main-footer {
    text-align: center;
    font-size: 14px;
    line-height: 1.6;
    margin-top: 40px;
    color: #555;
    max-width: 100%;
}

.main-footer .company-name {
    font-size: 16px;
    color: #111;
}

.main-footer .copyright {
    margin-top: 10px;
    font-size: 13px;
    color: #777;
}

.home-link {
    margin-top: 0.8rem;
    text-align: center;
}

.home-link a {
    display: inline-block;
    background: #0077FF;
    color: #fff;
    padding: 8px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
}

.home-link a:hover {
    background: #0066dd;
}

/* ====================== ACCORDION STYLES ====================== */
.accordion-item {
    margin-top: 0.5rem;
}

.accordion-header {
    background: #f1f1f1;
    color: #333;
    border: none;
    width: 100%;
    text-align: left;
    padding: 14px 18px;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease, color 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.accordion-header:hover {
    background: #e0e0e0;
}

.accordion-header.active {
    background: #0077FF;
    color: #fff;
}

.accordion-header i {
    transition: transform 0.4s ease;
    font-size: 1.25rem;
    flex-shrink: 0;
    width: 26px;
    text-align: center;
}

.accordion-content {
    padding: 1.25rem 1.5rem;
    margin-top: 0.4rem;
    background: #fafafa;
    border-radius: 4px;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.45s ease-in-out;
}

.accordion-content p,
.accordion-content ul,
.accordion-content h3,
.accordion-content h4 {
    margin: 0.85rem 0;
}

.accordion-header.active:hover {
    background: #0066dd;
}

/* ====================== BRAND SYMBOL ====================== */
.brand-symbol {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    position: relative;
    overflow: hidden;
    margin: 0 auto 20px;
    border-radius: 12px;
    background: linear-gradient(
        135deg,
        #ff8800 0%,
        #ffcc33 18%,
        #00c977 36%,
        #0077ff 58%,
        #9900ff 80%,
        #ff3399 100%
    );
    box-shadow:
        0 0 30px rgba(153, 0, 255, 0.3),
        inset 0 1px 2px rgba(255, 255, 255, 0.45),
        inset 0 -2px 5px rgba(0, 0, 0, 0.3);
}

.brand-symbol::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.55) 0%,
        rgba(255, 255, 255, 0.12) 30%,
        transparent 52%,
        rgba(0, 0, 0, 0.2) 100%
    );
    pointer-events: none;
}

.brand-symbol span {
    position: relative;
    z-index: 2;
    font-family: "Space Grotesk", sans-serif;
    font-size: 35px;
    font-weight: 700;
    line-height: 1;
    color: #ffffff;
    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.55),
        0 0 10px rgba(255, 255, 255, 0.25);
}

/* ====================== COOKIE CONSENT SYSTEM ====================== */
/* Scoped and contained so it cannot expand page width */

.cookie-banner {
    position: fixed;
    bottom: -120px;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100vw;
    background: #222;
    color: #fff;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    transition: bottom 0.5s ease, opacity 0.25s ease-in-out;
    font-size: 0.9rem;
    flex-wrap: wrap;
    gap: 10px;
    opacity: 0;
    pointer-events: none;
    box-sizing: border-box;
}

.cookie-banner.show {
    bottom: 0;
    opacity: 1;
    pointer-events: auto;
    animation: slideUp 0.4s ease;
}

.cookie-banner p {
    margin: 0;
    flex: 1 1 280px;
    max-width: 100%;
}

.cookie-banner .cookie-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-banner .btn-accept,
.cookie-banner .btn-decline {
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
    white-space: nowrap;
}

.cookie-banner .btn-accept {
    background: #00C977;
    color: #fff;
}

.cookie-banner .btn-accept:hover {
    background: #00a461;
}

.cookie-banner .btn-decline {
    background: transparent;
    color: #f00;
    border: 1px solid #ccc;
}

.cookie-banner .btn-decline:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.cookie-content {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.cookie-policy-link {
    color: #4da6ff;
    font-size: 0.85rem;
    text-decoration: underline;
}

.cookie-policy-link:hover {
    color: #80bfff;
}

/* Cookie Modal - fully contained */
.cookie-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.25s ease-in-out;
    padding: 16px;
    box-sizing: border-box;
}

.cookie-modal[style*="display: flex"] {
    opacity: 1;
}

.modal-content {
    background: white;
    color: #222;
    max-width: 540px;
    width: 100%;
    padding: 28px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-height: 90vh;
    overflow-y: auto;
    box-sizing: border-box;
}

.cookie-category {
    margin: 20px 0;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.cookie-category label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.cookie-category small {
    display: block;
    margin-top: 6px;
    color: #555;
}

.modal-buttons {
    margin-top: 24px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.btn-preferences,
.btn-secondary {
    background: #444;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
}

.btn-preferences:hover,
.btn-secondary:hover {
    background: #666;
}

.btn-reject {
    background: transparent;
    border: 2px solid #e63946;
    color: #e63946;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: bold;
}

.btn-reject:hover {
    background: #e63946;
    color: white;
}

/* Responsive */
@media (max-width: 600px) {
    body {
        padding: 1rem;
    }

    .container {
        padding: 1.25rem;
    }

    .cookie-banner {
        flex-direction: column;
        text-align: center;
        padding: 16px;
    }

    .cookie-banner .cookie-buttons,
    .cookie-buttons-main {
        width: 100%;
        justify-content: center;
    }

    .cookie-buttons-main button {
        width: 100%;
        margin: 6px 0;
    }

    .modal-content {
        padding: 20px;
    }
}

@keyframes slideUp {
    from {
        bottom: -120px;
        opacity: 0;
    }
    to {
        bottom: 0;
        opacity: 1;
    }
}