/* --- Google Font Import --- */
@import url('https://fonts.googleapis.com/css2?family=Bubblegum+Sans&family=Quicksand:wght@400;500;700&display=swap');

/* --- CSS Varijable (Finalna, Skladna Paleta) --- */
:root {
  --font-heading: 'Bubblegum Sans', cursive; /* Ispravljen font-family */
  --font-body: 'Quicksand', sans-serif;
  
  --color-blue: #368AB9;      /* Plava za glavne naslove */
  --color-red: #BF3741;       /* Crvena za akcije i gumbe */
  --color-beige: #f9fafb;     /* Topla bež za pozadinu sekcija */
  --color-text: #333333;      /* Tamni tekst */
  --color-white: #ffffff;     /* Bijela */
  --color-light-bg: #f8f9fa;  /* Vrlo svijetla pozadina */
  
  --shadow: 0 5px 25px rgba(0, 0, 0, 0.07);
  --border-radius: 12px;
}

/* --- Osnovni Stilovi --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-white);
  line-height: 1.7;
}

/* --- Tipografija --- */
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.2; }
h1, h2 { color: var(--color-blue); }
h1 {
  font-size: clamp(3rem, 7vw, 4.5rem); /* Vraćena veličina za naslovnicu */
  text-align: center;
}
h2 { font-size: clamp(2.2rem, 6vw, 3.2rem); text-align: center; margin-bottom: 3rem; }
h3 { font-size: 1.8rem; color: var(--color-blue); margin-bottom: 1rem; }
p { margin-bottom: 1.2rem; }
a { color: var(--color-red); text-decoration: none; font-weight: 700; transition: opacity 0.3s; }
a:hover { opacity: 0.8; }
.subtitle { font-size: 1.2rem; color: #555; max-width: 600px; margin: 1rem auto 0; }

/* --- Pomoćne Klase --- */
.container { width: 90%; max-width: 1100px; margin: 0 auto; }
.section { padding: 100px 0; position: relative; }
.text-center { text-align: center; }

/* Gumb */
.btn {
  display: inline-block;
  background-color: var(--color-red);
  color: var(--color-white);
  padding: 14px 32px;
  font-family: var(--font-body);
  font-weight: 700;
  border-radius: var(--border-radius);
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  border: 2px solid var(--color-red);
}
.btn:hover {
  background-color: var(--color-white);
  color: var(--color-red);
  transform: translateY(-3px);
  opacity: 1;
}

/* --- Header i Navigacija --- */
.header {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  padding: 15px 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: sticky; top: 0; z-index: 1000;
}
.navbar { display: flex; justify-content: space-between; align-items: center; }
.logo { font-family: var(--font-heading); font-size: 2.2rem; color: var(--color-blue); }
.nav-links { display: flex; list-style: none; gap: 35px; }
.nav-links a {
  color: var(--color-text); font-size: 1rem; font-weight: 700;
  padding-bottom: 5px; border-bottom: 2px solid transparent;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--color-blue);
  border-bottom-color: var(--color-blue);
}

/* --- Val Divider (za naslovnicu) --- */
.wave-divider {
  position: absolute; bottom: 0; left: 0; width: 100%;
  overflow: hidden; line-height: 0; transform: rotate(180deg);
}
.wave-divider svg {
  position: relative; display: block;
  width: calc(120% + 1.3px); height: 120px;
}
.wave-divider .shape-fill { fill: var(--color-white); }


/* --- Sekcije s podijeljenim sadržajem (koristi se na više stranica) --- */
.bg-beige { background-color: var(--color-beige); }
.bg-light { background-color: var(--color-light-bg); }

.split-section {
    display: flex; align-items: center; gap: 60px;
}
.split-section .text-content { flex: 1; }
.split-section .image-content { flex: 1; }
.split-section img {
    width: 100%; border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}
.split-section.reverse { flex-direction: row-reverse; }


/* ======================================================= */
/* === STILOVI ZA "VRHUNSKI" REDIZAJNIRANI FOOTER === */
/* ======================================================= */

.site-footer {
    background-color: #368AB9;
    color: #ced4da;
    padding: 120px 0 20px 0; /* Povećan padding na vrhu za val */
    position: relative;
    font-size: 0.95rem;
}

.footer-wave {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: translateY(-100%) rotate(180deg); /* Trik za postavljanje vala na vrh */
}

.footer-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 120px;
}

.footer-wave .shape-fill {
    fill: #368AB9; /* Boja vala mora biti ista kao pozadina footera */
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr; /* Brend sekcija je šira */
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--color-white);
    text-decoration: none;
    margin-bottom: 1rem;
    display: inline-block;
}

.footer-tagline {
    max-width: 300px;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.footer-social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #343a40;
    color: var(--color-white);
    text-decoration: none;
    font-weight: 700;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.footer-social-icons a:hover {
    background-color: var(--color-red);
    transform: translateY(-3px);
    opacity: 1;
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-body);
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.footer-links ul,
.footer-contact ul {
    list-style: none;
    padding: 0;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 0.75rem;
}

.footer-links a,
.footer-contact a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 400;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--color-white);
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    color: #fff;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
}

/* Responzivnost za novi footer */
@media (max-width: 900px) {
    .footer-main {
        grid-template-columns: 1fr; /* Sve ide u jednu kolonu */
        text-align: center;
    }

    .footer-tagline {
        margin-left: auto;
        margin-right: auto;
    }
}

/* ======================================================= */
/* === STILOVI ZA MOBILNI (HAMBURGER) IZBORNIK === */
/* ======================================================= */

.hamburger {
    display: none; /* Skriven na desktopu */
    cursor: pointer;
    z-index: 1001; /* Da bude iznad svega */
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    background-color: var(--color-text);
    transform-origin: center;
}

/* === ISPRAVLJENI BLOK ZA MOBILNE UREĐAJE === */
@media(max-width: 768px) {
    .hamburger {
        display: block; /* Prikazuje se na mobitelu */
    }

    /* Animacija hamburgera u 'X' */
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Stilovi za navigacijske linkove na mobitelu */
    .nav-links {
        position: fixed;
        left: -100%; /* Počinje izvan ekrana */
        top: 72px; /* Visina headera - prilagodite ako je potrebno */
        gap: 0;
        flex-direction: column;
        background-color: var(--color-white);
        width: 100%;
        text-align: center;
        transition: left 0.3s ease-in-out; /* Tranzicija za left svojstvo */
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        z-index: 1000; /* Osigurava da je iznad ostalih elemenata */
        height: calc(100vh - 72px); /* Puna visina ekrana minus header */
        overflow-y: auto; /* Scroll ako je potrebno */
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        display: block;
        padding: 1.5rem 0;
        border-bottom: none;
        width: 100%;
    }

    .nav-links a:hover,
    .nav-links a.active {
        background-color: var(--color-light-bg);
        color: var(--color-red);
        border-bottom: none;
    }
    
    /* Prikaz izbornika kada je aktivan - ovo je ključni ispravak */
    .nav-links.active {
        left: 0;
    }
    
    /* Backdrop overlay kada je meni otvoren */
    .nav-links.active::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: -1;
    }
}

/* ======================================================= */
/* =============== STILOVI ZA NASLOVNICU (HOME) ============ */
/* ======================================================= */

.hero-home {
    position: relative;
    padding: 120px 0 200px 0;
    color: var(--color-white);
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('../images/home.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-home h1,
.hero-home .subtitle {
    color: var(--color-white);
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

.overlapping-section {
    padding-top: 0;
    margin-top: -120px;
    position: relative;
    z-index: 10;
}

.key-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: var(--color-white);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 50px rgba(0,0,0,0.15);
}

.feature-icon {
    font-size: 3rem;
    line-height: 1;
    margin-bottom: 1rem;
    display: block;
}

.feature-card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
}

.card-link {
    display: inline-block;
    margin-top: 1.5rem;
    font-weight: 700;
}

/* ================================================= */
/* === STILOVI ZA STRANICU "O NAMA" === */
/* ================================================= */

.hero.bg-light {
    padding-top: 50px;
    padding-bottom: 50px;
    border-bottom: 1px solid #eee;
}

.about-hero {
    padding-top: 80px;
    background-color: var(--color-light-bg);
    text-align: center;
}

.about-hero-content {
    max-width: 700px;
    margin: 0 auto;
}

.hero-image-collage {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 4rem;
    height: 350px;
    gap: 10px;
}

.hero-image-collage .image-wrapper {
    background-size: cover;
    background-position: center;
    border-radius: var(--border-radius);
    transition: transform 0.4s ease;
}

.hero-image-collage .image-wrapper:hover {
    transform: scale(1.05);
    z-index: 5;
}

.text-container {
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

.quote {
    margin: 2rem 0;
    padding: 1.5rem;
    background-color: var(--color-light-bg);
    border-left: 5px solid var(--color-blue);
    font-style: italic;
    font-size: 1.1rem;
    color: #555;
}

.values-grid-new {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    margin-top: 2rem;
}

.value-card-new {
    background-color: var(--color-white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.value-card-new:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.value-card-new h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.75rem;
}

/* ======================================================= */
/* === STILOVI ZA STRANICU "ATRAKCIJE" === */
/* ======================================================= */

.attraction-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 4rem;
}

.attraction-gallery img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.attraction-list-container {
    max-width: 900px;
    margin: 0 auto;
}

.category-section {
    margin-bottom: 5rem;
}

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

.category-title {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.category-letter {
    font-family: var(--font-heading);
    font-size: 5rem;
    color: var(--color-blue);
    opacity: 0.2;
    line-height: 1;
}

.category-text {
    font-family: var(--font-heading);
    color: var(--color-blue);
    font-size: 2.2rem;
    line-height: 1.1;
}

.category-subtitle {
    display: block;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-red);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.attraction-item {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    align-items: start;
    padding: 1.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}
.attraction-item:last-child {
    border-bottom: none;
}

.attraction-item h3 {
    margin-bottom: 0;
    font-size: 1.4rem;
    color: var(--color-text);
}

.attraction-item p {
    margin: 0;
    color: #555;
}

/* ======================================================= */
/* === STILOVI ZA STRANICU "EDUKACIJA" === */
/* ======================================================= */

.program-section {
    background-color: var(--color-light-bg);
}

.program-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.program-card {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    background-color: var(--color-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    min-height: 400px;
}

.program-card:nth-child(even) {
    grid-template-columns: 1.2fr 1fr;
}
.program-card:nth-child(even) .program-card-image {
    order: 2;
}
.program-card:nth-child(even) .program-card-content {
    order: 1;
}

.program-card-image {
    background-size: cover;
    background-position: center;
    position: relative;
}
.program-card-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.1);
}

.program-card-content {
    padding: 2.5rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 5px solid var(--color-blue);
}

.program-card:nth-child(even) .program-card-content {
    border-left: none;
    border-right: 5px solid var(--color-red);
}

.program-icon {
    font-size: 3rem;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.program-action-tag {
    font-family: var(--font-body);
    font-weight: 700;
    color: var(--color-red);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.program-card h2 {
    text-align: left;
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.program-card p {
    color: #555;
    font-size: 1rem;
}

/* ======================================================= */
/* === STILOVI ZA STRANICU "B2B" === */
/* ======================================================= */

.b2b-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.b2b-card {
    background-color: var(--color-white);
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
}

.b2b-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.07);
}

.b2b-card-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.b2b-icon {
    font-size: 2rem;
    line-height: 1;
}

.b2b-card h3 {
    margin: 0;
    font-size: 1.5rem;
}

.b2b-card-body {
    padding: 1.5rem;
    flex-grow: 1;
}

.b2b-card-body p:first-child {
    font-weight: 700;
    color: var(--color-text);
}

.b2b-benefits-list {
    list-style: none;
    padding: 0;
    margin-top: 1.5rem;
}

.b2b-benefits-list li {
    padding-left: 1.8rem;
    position: relative;
    margin-bottom: 0.5rem;
}

.b2b-benefits-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-blue);
    font-weight: 700;
}

/* ======================================================= */
/* === STILOVI ZA STRANICU "KONTAKT" === */
/* ======================================================= */

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 5rem;
}

.info-card {
    background-color: var(--color-light-bg);
    border-radius: var(--border-radius);
    border: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
}

.info-card-header {
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.info-icon {
    font-size: 1.8rem;
    line-height: 1;
}

.info-card h3 {
    margin: 0;
    font-size: 1.3rem;
    color: var(--color-blue);
}

.info-card-body {
    padding: 1.5rem;
    flex-grow: 1;
}
.info-card-body p {
    margin-bottom: 1rem;
}
.info-card-body p:last-child {
    margin-bottom: 0;
}

.faq-section {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #e0e0e0;
}
.faq-item:first-of-type {
    border-top: 1px solid #e0e0e0;
}

.faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    list-style: none;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--color-blue);
    transition: transform 0.3s ease;
}
.faq-item[open] summary::after {
    transform: rotate(45deg);
}
.faq-item[open] summary {
    color: var(--color-red);
}

.faq-item p {
    padding-bottom: 1rem;
    color: #555;
}

.contact-details {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-person {
    background-color: var(--color-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    min-width: 300px;
}

.contact-name {
    display: block;
    font-weight: 700;
    color: var(--color-red);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.contact-person strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--color-blue);
    margin-bottom: 1.5rem;
}

.contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

.contact-email-link {
    display: block;
    margin-top: 1rem;
    font-weight: 500;
}


/* --- Responzivnost --- */
@media (max-width: 900px) {
    .program-card,
    .program-card:nth-child(even) {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .program-card-image {
        height: 250px;
    }
    
    .program-card:nth-child(even) .program-card-image,
    .program-card:nth-child(even) .program-card-content {
        order: initial;
    }

    .program-card-content {
       border-left: none;
       border-top: 5px solid var(--color-blue);
    }
    .program-card:nth-child(even) .program-card-content {
       border-right: none;
       border-top: 5px solid var(--color-red);
    }
}

@media (max-width: 800px) {
    .contact-page-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
  .split-section, .split-section.reverse {
      flex-direction: column; text-align: center;
  }
  .split-section .image-content { margin-top: 2rem; }
  .hero-image-collage {
        height: auto;
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .attraction-item {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .category-title {
        gap: 15px;
    }

    .category-letter {
        font-size: 4rem;
    }

    .category-text {
        font-size: 1.8rem;
    }
}

/* ======================================================= */
/* === PAGE TRANSITION SYSTEM === */
/* ======================================================= */

/* Page transition overlay */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-blue);
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.page-transition.active {
    opacity: 1;
    pointer-events: all;
}

/* Wave transition element */
.page-transition-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Single elegant wave */
.page-transition-wave::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: -100%;
    width: 300%;
    height: 100%;
    background: var(--color-white);
    border-radius: 50% 50% 0 0;
    transform: translateY(100%);
    transition: transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.1);
}

.page-transition.active .page-transition-wave::before {
    transform: translateY(0);
}

/* Loading animation for transition */
.page-transition-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: pulse 2s infinite;
}

.page-transition.active .page-transition-loading {
    opacity: 1;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Prevent body scroll during transition */
body.transitioning {
    overflow: hidden;
}

/* Smooth page content fade */
.page-content {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.page-content.fade-out {
    opacity: 0;
}

/* ======================================================= */
/* === LEGAL PAGE LAYOUT WITH SIDEBAR === */
/* ======================================================= */

/* Legal page layout */
.legal-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    align-items: start;
}

/* Sidebar styles */
.legal-sidebar {
    position: sticky;
    top: 100px;
    background-color: var(--color-light-bg);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    height: fit-content;
}

.legal-nav h3 {
    color: var(--color-blue);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.legal-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.legal-nav li {
    margin-bottom: 0.5rem;
}

.legal-nav-link {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--color-text);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.legal-nav-link:hover,
.legal-nav-link.active {
    background-color: var(--color-blue);
    color: var(--color-white);
    transform: translateX(5px);
}

/* Main content area */
.legal-content {
    background-color: var(--color-white);
    border-radius: var(--border-radius);
    padding: 3rem;
    box-shadow: var(--shadow);
}

/* Legal sections */
.legal-section {
    margin-bottom: 4rem;
    scroll-margin-top: 120px; /* For smooth scrolling with fixed header */
}

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

.legal-section h2 {
    color: var(--color-blue);
    margin-bottom: 0.5rem;
    font-size: 2.2rem;
}

.legal-date {
    color: #666;
    font-style: italic;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.legal-section h3 {
    color: var(--color-blue);
    margin: 2rem 0 1rem 0;
    font-size: 1.4rem;
}

.legal-section p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.legal-section ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.legal-section li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.legal-section a {
    color: var(--color-red);
    text-decoration: none;
    font-weight: 600;
}

.legal-section a:hover {
    text-decoration: underline;
}

/* Responsive design for legal page */
@media (max-width: 900px) {
    .legal-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .legal-sidebar {
        position: static;
        order: 2;
    }
    
    .legal-content {
        order: 1;
        padding: 2rem;
    }
    
    .legal-nav {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .legal-nav ul {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .legal-nav li {
        margin-bottom: 0;
    }
    
    .legal-nav-link {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
        white-space: nowrap;
    }
}

@media (max-width: 600px) {
    .legal-content {
        padding: 1.5rem;
    }
    
    .legal-section h2 {
        font-size: 1.8rem;
    }
    
    .legal-section h3 {
        font-size: 1.2rem;
    }
    
    .legal-nav {
        flex-direction: column;
    }
    
    .legal-nav ul {
        flex-direction: column;
    }
}