/* =========================================================
   RESET & BASE STYLES
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
        Roboto, Helvetica, Arial, sans-serif;
    user-select: none;
}

html {
    width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    width: 100%;
    min-width: 0;
    color: #222;
    background-color: #fff;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    -webkit-tap-highlight-color: transparent;
}

button,
input,
textarea,
select {
    font: inherit;
}

img {
    max-width: 100%;
    height: auto;
}


/* =========================================================
   CONTAINER
========================================================= */

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}


/* =========================================================
   NAVBAR
========================================================= */

.navbar {
    width: 100%;
    min-height: 70px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 15px 60px;

    background-color: #ffffff;
    border-bottom: 1px solid #eee;

    position: relative;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;

    font-size: 24px;
    font-weight: 700;

    flex-shrink: 0;
}

.logo-icon {
    width: 100px;
    height: 40px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: url('/LogoSmall.svg') center / contain no-repeat;
}


/* Navigation links */

.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 25px;

    flex: 1;
}

.nav-links a {
    color: #444;
    text-decoration: none;

    font-size: 14px;
    font-weight: 500;

    white-space: nowrap;

    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: #6a1b9a;
}

.nav-links a.active {
    color: #6a1b9a;

    border-bottom: 2px solid #6a1b9a;

    padding-bottom: 4px;
}


/* Navbar buttons */

.nav-actions {
    display: flex;
    align-items: center;

    gap: 15px;

    flex-shrink: 0;
}

.btn-text {
    color: #333;
    text-decoration: none;

    font-size: 14px;

    white-space: nowrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: #fff;
    text-decoration: none;

    background: linear-gradient(
        135deg,
        #6b34bc 25%,
        #cd2783 50%,
        #f56921 100%
    );

    padding: 8px 18px;

    border-radius: 6px;

    font-size: 14px;
    font-weight: 500;

    white-space: nowrap;

    transition: opacity 0.2s ease;
}

.btn-primary:hover {
    opacity: 0.9;
}


/* =========================================================
   MAIN CONTENT
========================================================= */

.content-container {
    width: 100%;
    max-width: 720px;

    margin: 40px auto 80px;

    padding-left: 20px;
    padding-right: 20px;
}

.breadcrumb {
    font-size: 12px;
    color: #888;

    margin-bottom: 12px;
}

.page-title {
    font-size: clamp(28px, 4vw, 36px);
    line-height: 1.2;

    font-weight: 800;

    margin-bottom: 6px;

    color: #111;
}

.last-updated {
    font-size: 13px;
    color: #777;

    margin-bottom: 35px;
}

.policy-section {
    width: 100%;
    margin-bottom: 32px;
}

.policy-section h2 {
    font-size: 12px;
    font-weight: 700;

    letter-spacing: 0.5px;

    color: #111;

    text-transform: uppercase;

    margin-bottom: 12px;
}

.policy-section p {
    font-size: 13px;
    color: #555;

    line-height: 1.65;

    overflow-wrap: break-word;
}


/* =========================================================
   COOKIE CARDS
========================================================= */

.cookie-cards-grid {
    width: 100%;

    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 16px;

    margin-top: 15px;
}

.cookie-card {
    min-width: 0;

    background-color: #f7f7f7;

    padding: 20px 16px;

    border-radius: 6px;

    border: 1px solid #ebebeb;
}

.cookie-card h3 {
    font-size: 13px;
    font-weight: 700;

    margin-bottom: 8px;

    color: #111;

    line-height: 1.4;
}

.cookie-card p {
    font-size: 12px;
    color: #666;

    line-height: 1.5;

    overflow-wrap: break-word;
}


/* =========================================================
   FOOTER
========================================================= */

.footer {
    width: 100%;

    background-color: #f36c21;

    color: #fff;

    padding: 50px 0 20px;
}

.footer-grid {
    display: grid;

    grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));

    gap: 40px;

    margin-bottom: 40px;
}

.footer-brand {
    min-width: 0;
}

.footer-brand p {
    font-size: 12px;

    margin-top: 15px;

    line-height: 1.5;

    max-width: 250px;

    opacity: 0.9;
}

.footer-links {
    min-width: 0;
}

.footer-links h4 {
    font-size: 11px;

    letter-spacing: 1px;

    margin-bottom: 15px;

    opacity: 0.85;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #fff;
    text-decoration: none;

    font-size: 13px;

    opacity: 0.9;

    overflow-wrap: break-word;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-links a.bold-link {
    font-weight: 700;
    font-size: 15px;
}


/* =========================================================
   FOOTER BOTTOM
========================================================= */

.footer-bottom {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;

    border-top: 1px solid rgba(255, 255, 255, 0.2);

    padding-top: 20px;

    font-size: 11px;

    opacity: 0.85;
}

.faq a {
    color: #fff;
    text-decoration: none;

    font-size: 12px;

    opacity: 0.9;
}

.lang-select {
    display: flex;
    align-items: center;

    gap: 4px;

    white-space: nowrap;
}


/* =========================================================
   LARGE TABLETS / SMALL LAPTOPS
   1024px and below
========================================================= */

@media (max-width: 1024px) {

    .navbar {
        padding-left: 30px;
        padding-right: 30px;
    }

    .nav-links {
        gap: 18px;
    }

    .footer-grid {
        grid-template-columns: 1.5fr repeat(3, 1fr);
        gap: 25px;
    }
}


/* =========================================================
   TABLETS
   768px and below
========================================================= */

@media (max-width: 768px) {

    /* ---------- Navbar ---------- */

    .navbar {
        min-height: auto;

        padding: 14px 20px;

        flex-wrap: wrap;

        gap: 10px 15px;
    }

    .logo-icon {
        width: 90px;
        height: 38px;
    }

    .nav-actions {
        margin-left: auto;

        gap: 10px;
    }

    .nav-links {
        order: 3;

        flex: 0 0 100%;

        width: 100%;

        justify-content: flex-start;

        gap: 20px;

        overflow-x: auto;
        overflow-y: hidden;

        padding: 4px 0 6px;

        scrollbar-width: none;

        -webkit-overflow-scrolling: touch;
    }

    .nav-links::-webkit-scrollbar {
        display: none;
    }

    .nav-links a {
        font-size: 13px;
        flex-shrink: 0;
    }


    /* ---------- Main content ---------- */

    .content-container {
        margin-top: 35px;
        margin-bottom: 60px;
    }

    .page-title {
        font-size: 32px;
    }


    /* ---------- Cookie cards ---------- */

    .cookie-cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }


    /* ---------- Footer ---------- */

    .footer {
        padding-top: 45px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 30px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-brand p {
        max-width: 400px;
    }

    .footer-bottom {
        flex-wrap: wrap;
    }
}


/* =========================================================
   MOBILE
   576px and below
========================================================= */

@media (max-width: 576px) {

    /* ---------- General ---------- */

    .container {
        padding-left: 16px;
        padding-right: 16px;
    }


    /* ---------- Navbar ---------- */

    .navbar {
        padding: 12px 16px;
    }

    .logo-icon {
        width: 82px;
        height: 35px;
    }

    .nav-actions {
        gap: 8px;
    }

    .btn-text {
        font-size: 13px;
    }

    .btn-primary {
        padding: 8px 12px;

        font-size: 12px;

        border-radius: 5px;
    }

    .nav-links {
        gap: 18px;
    }

    .nav-links a {
        font-size: 12px;
    }


    /* ---------- Main content ---------- */

    .content-container {
        margin: 30px auto 50px;

        padding-left: 16px;
        padding-right: 16px;
    }

    .breadcrumb {
        font-size: 11px;
        margin-bottom: 10px;
    }

    .page-title {
        font-size: 28px;

        margin-bottom: 5px;
    }

    .last-updated {
        font-size: 12px;

        margin-bottom: 28px;
    }

    .policy-section {
        margin-bottom: 28px;
    }

    .policy-section h2 {
        font-size: 11px;

        margin-bottom: 10px;
    }

    .policy-section p {
        font-size: 13px;

        line-height: 1.65;
    }


    /* ---------- Cookie cards ---------- */

    .cookie-cards-grid {
        grid-template-columns: 1fr;

        gap: 12px;

        margin-top: 12px;
    }

    .cookie-card {
        padding: 17px 15px;
    }


    /* ---------- Footer ---------- */

    .footer {
        padding: 40px 0 18px;
    }

    .footer-grid {
        grid-template-columns: 1fr;

        gap: 25px;

        margin-bottom: 30px;
    }

    .footer-brand {
        grid-column: auto;
    }

    .footer-brand p {
        max-width: 100%;
    }

    .footer-links h4 {
        margin-bottom: 12px;
    }

    .footer-links li {
        margin-bottom: 7px;
    }

    .footer-links a {
        font-size: 13px;
    }


    /* ---------- Footer bottom ---------- */

    .footer-bottom {
        flex-direction: column;

        justify-content: center;
        align-items: center;

        text-align: center;

        gap: 10px;

        padding-top: 18px;
    }

    .faq a {
        font-size: 12px;
    }
}


/* =========================================================
   SMALL PHONES
   400px and below
========================================================= */

@media (max-width: 400px) {

    .navbar {
        padding: 10px 12px;
    }

    .logo-icon {
        width: 75px;
        height: 32px;
    }

    /*
       Hide the text login link on very small screens
       so the navbar never overflows.
    */
    .btn-text {
        display: none;
    }

    .btn-primary {
        padding: 7px 10px;

        font-size: 11px;
    }

    .nav-links {
        gap: 16px;
    }

    .nav-links a {
        font-size: 11px;
    }


    /* Main */

    .content-container {
        padding-left: 12px;
        padding-right: 12px;

        margin-top: 25px;
        margin-bottom: 45px;
    }

    .page-title {
        font-size: 25px;
    }

    .last-updated {
        margin-bottom: 25px;
    }

    .policy-section p {
        font-size: 12.5px;
    }


    /* Cookie cards */

    .cookie-card {
        padding: 15px 13px;
    }

    .cookie-card h3 {
        font-size: 12px;
    }

    .cookie-card p {
        font-size: 11.5px;
    }
}


/* =========================================================
   EXTRA SMALL PHONES
   340px and below
========================================================= */

@media (max-width: 340px) {

    .logo-icon {
        width: 68px;
    }

    .btn-primary {
        padding: 6px 8px;
        font-size: 10px;
    }

    .nav-links {
        gap: 14px;
    }

    .nav-links a {
        font-size: 10.5px;
    }

    .page-title {
        font-size: 23px;
    }

    .policy-section p {
        font-size: 12px;
    }
}


/* =========================================================
   LANDSCAPE MOBILE
========================================================= */

@media (max-height: 500px) and (orientation: landscape) {

    .navbar {
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .content-container {
        margin-top: 25px;
        margin-bottom: 40px;
    }
}


/* =========================================================
   TOUCH DEVICES
========================================================= */

@media (hover: none) and (pointer: coarse) {

    .nav-links a,
    .btn-text,
    .btn-primary,
    .footer-links a,
    .faq a {
        min-height: 40px;

        display: inline-flex;
        align-items: center;
    }
}


/* =========================================================
   REDUCE MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    * {
        transition: none !important;
        animation: none !important;
    }
}
