@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

:root {
    --primary: #D8A38C;
    --primary-dark: #B8856F;
    --secondary: #1A1A1A;
    --text-dark: #1A1A1A;
    --text-light: #F9F9F9;
    --bg-light: #FFFFFF;
    --bg-alt: #F9F9F9;
    --glass: rgba(255, 255, 255, 0.8);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(216, 163, 140, 0.4);
}

.btn-outline {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: white;
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
}

header.scrolled {
    background: var(--glass);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: var(--shadow);
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary);
    letter-spacing: -1px;
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-links a {
    font-weight: 500;
    font-size: 1rem;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Split Section */
.hero-split-container {
    display: flex;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.hero-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 4rem;
    position: relative;
    transition: flex 0.6s cubic-bezier(0.25, 1, 0.5, 1), background-color 0.4s ease;
    cursor: pointer;
    text-align: center;
}

/* Tamni panel - Dermatolog */
.panel-dermatolog {
    background-color: #231F1E;
    background-image: linear-gradient(rgba(35, 31, 30, 0.3), rgba(35, 31, 30, 0.3)), url('Slike/dermatolog.jpg');
    background-size: cover;
    background-position: center;
    color: #FFFFFF;
}

.panel-dermatolog:hover {
    flex: 1.25;
    background-image: linear-gradient(rgba(49, 43, 41, 0.2), rgba(49, 43, 41, 0.2)), url('Slike/dermatolog.jpg');
}

.panel-dermatolog .panel-subtitle,
.panel-dermatolog h2,
.panel-dermatolog p {
    text-shadow: 0 2px 8px rgba(35, 31, 30, 0.9), 0 1px 3px rgba(35, 31, 30, 0.9);
}

/* Svetli panel - Kozmetičar */
.panel-kozmeticar {
    background-color: #FAF6F0;
    background-image: linear-gradient(rgba(250, 246, 240, 0.2), rgba(250, 246, 240, 0.2)), url('Slike/kozmeticar.jpg');
    background-size: cover;
    background-position: center;
    color: #1A1A1A;
}

.panel-kozmeticar:hover {
    flex: 1.25;
    background-image: linear-gradient(rgba(243, 234, 224, 0.1), rgba(243, 234, 224, 0.1)), url('Slike/kozmeticar.jpg');
}

.panel-kozmeticar .panel-subtitle,
.panel-kozmeticar h2,
.panel-kozmeticar p {
    text-shadow: 0 2px 8px rgba(250, 246, 240, 0.9), 0 1px 3px rgba(250, 246, 240, 0.9);
}

.panel-content {
    max-width: 500px;
    transform: translateY(0);
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-panel:hover .panel-content {
    transform: translateY(-5px);
}

.panel-subtitle {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 1.5rem;
    font-weight: 600;
    color: var(--primary);
    display: block;
}

.hero-panel h2 {
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 600;
    letter-spacing: 4px;
    margin-bottom: 1.8rem;
    line-height: 1.2;
    position: relative;
}

.hero-panel h2::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.4s ease;
}

.hero-panel:hover h2::after {
    width: 70px;
}

.hero-panel p {
    font-size: 1.05rem;
    line-height: 1.65;
    margin-bottom: 2.8rem;
    opacity: 0.85;
    transition: opacity 0.4s ease;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
}

.hero-panel:hover p {
    opacity: 1;
}

/* Panel Buttons */
.btn-panel-dark,
.btn-panel-light {
    padding: 0.9rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    display: inline-block;
    text-decoration: none;
}

.btn-panel-dark {
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: #FFFFFF;
    background-color: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.btn-panel-dark:hover {
    background-color: #FFFFFF;
    color: #1A1A1A;
    border-color: #FFFFFF;
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.btn-panel-light {
    border: 2px solid rgba(26, 26, 26, 0.4);
    color: #1A1A1A;
    background-color: rgba(26, 26, 26, 0.03);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.btn-panel-light:hover {
    background-color: #1A1A1A;
    color: #FFFFFF;
    border-color: #1A1A1A;
    box-shadow: 0 10px 25px rgba(26, 26, 26, 0.15);
    transform: translateY(-2px);
}

/* Services Filtering Tabs */
.services-filter-tabs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: -1.5rem auto 3rem;
    flex-wrap: wrap;
    max-width: 600px;
}

.filter-tab-btn {
    padding: 0.8rem 2rem;
    border-radius: 50px;
    border: 2px solid #EAEAEA;
    background-color: white;
    color: #444444;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    outline: none;
    letter-spacing: 0.5px;
}

.filter-tab-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.filter-tab-btn.active {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 10px 20px rgba(216, 163, 140, 0.2);
}

/* Sections General */
section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    padding-bottom: 1rem;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary);
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.service-card {
    padding: 3rem;
    background: var(--bg-alt);
    border-radius: 20px;
    transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1), transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), background 0.4s, border-color 0.4s, box-shadow 0.4s;
    text-align: center;
    border: 1px solid transparent;
    opacity: 1;
    transform: scale(1) translateY(0);
}

.service-card.filtered-out {
    opacity: 0;
    transform: scale(0.9) translateY(15px);
    position: absolute;
    pointer-events: none;
    visibility: hidden;
    width: 0;
    height: 0;
    padding: 0;
    margin: 0;
    border: none;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    background: white;
    box-shadow: var(--shadow);
    border-color: rgba(216, 163, 140, 0.3);
}

.service-card i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    display: block;
}

.service-card h3 {
    margin-bottom: 1rem;
}

/* About Section */
.about-flex {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.about-content {
    flex: 1;
}

.about-image {
    flex: 1;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
}

.contact-info div {
    margin-bottom: 2rem;
}

.contact-info i {
    color: var(--primary);
    margin-right: 1rem;
    font-size: 1.2rem;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    outline: none;
    transition: var(--transition);
}

.contact-form input:focus, .contact-form textarea:focus {
    border-color: var(--primary);
}

/* Footer */
footer {
    background: var(--secondary);
    color: white;
    padding: 80px 0 30px;
}

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

footer h4 {
    color: var(--primary);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

footer ul li {
    margin-bottom: 0.8rem;
}

footer ul li a {
    opacity: 0.75;
    font-size: 0.95rem;
    display: inline-block;
    transition: var(--transition);
}

footer ul li a:hover {
    opacity: 1;
    color: var(--primary);
    transform: translateX(5px);
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.footer-logo span {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .hero-panel h2 {
        font-size: 2.8rem;
    }
    .about-flex {
        flex-direction: column;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-split-container {
        flex-direction: column;
        min-height: 100vh;
        min-height: 100dvh;
        padding-top: 80px; /* Space for the header */
    }
    .hero-panel {
        flex: 1;
        width: 100%;
        padding: 4rem 2rem;
    }
    .hero-panel:hover {
        flex: 1; /* Disable expansion on mobile hover */
    }
    .hero-panel h2 {
        font-size: 2.2rem;
    }
    .hero-panel p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    .services-filter-tabs {
        gap: 0.5rem;
        margin-bottom: 2rem;
    }
    .filter-tab-btn {
        padding: 0.6rem 1.4rem;
        font-size: 0.85rem;
    }
    .nav-links {
        display: none;
    }
    .mobile-toggle {
        display: block;
    }
}

/* Dashboard Overlay */
.dashboard-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 2000;
    display: none;
    overflow-y: auto;
    padding: 2rem;
}

.dashboard-overlay.active {
    display: block;
}

.dashboard-container {
    max-width: 1000px;
    margin: 0 auto;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
    margin-bottom: 2rem;
}

.close-overlay {
    position: fixed;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--secondary);
}

/* Login Section */
.login-section {
    max-width: 400px;
    margin: 100px auto;
    text-align: center;
}

.login-section h2 {
    margin-bottom: 2rem;
}

/* Tabs */
.dashboard-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.tab-btn {
    padding: 1rem 2rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    color: #666;
    transition: var(--transition);
}

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Patient Forms */
.dashboard-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background: var(--bg-alt);
    padding: 2rem;
    border-radius: 15px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.input-group label {
    display: block;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    color: #666;
}

/* Patients Grid */
.search-bar {
    margin-bottom: 2rem;
}

.search-bar input {
    width: 100%;
    padding: 1.2rem;
    font-size: 1.1rem;
    border-radius: 10px;
    border: 1px solid #ddd;
}

.patients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.p-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #eee;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    cursor: pointer;
    transition: var(--transition);
}

.p-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.p-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.p-card p {
    font-size: 0.9rem;
    color: #666;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
}

.exam-record {
    padding: 1.5rem;
    border-left: 4px solid var(--primary);
    background: rgba(216, 163, 140, 0.05);
    margin-bottom: 1.5rem;
    border-radius: 0 12px 12px 0;
}

.exam-record h4 {
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.btn-karton-nav {
    border: 2px solid var(--primary) !important;
    padding: 0.5rem 1.5rem !important;
    border-radius: 20px;
    color: var(--primary) !important;
    margin-left: 1rem;
}

.btn-termini-nav {
    background: var(--primary);
    color: white !important;
    padding: 0.5rem 1.5rem !important;
    border-radius: 20px;
    margin-left: 1rem;
    font-weight: 600;
}

.btn-termini-nav:hover {
    background: var(--primary-dark);
}

.btn-karton-nav:hover {
    background: var(--primary);
    color: white !important;
}

.karton-badge {
    background: var(--primary);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}


.btn-delete-exam {
    background: transparent;
    color: #d9534f;
    border: none;
    padding: 2px 5px;
    cursor: pointer;
    font-size: 0.8rem;
    margin-left: 10px;
}

.btn-delete-exam:hover {
    color: #c9302c;
}

/* Service Dropdown Styling */
.service-dropdown {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    background: white;
    cursor: pointer;
}

.btn-print {
    background: #f0f0f0;
    color: #333;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-size: 0.8rem;
    margin-top: 1rem;
    display: inline-block;
    cursor: pointer;
    border: 1px solid #ccc;
    transition: var(--transition);
}

.btn-print:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Modal Enhancements */
.modal-large {
    max-width: 1400px; /* Jos sire za lakse kucanje */
    width: 98%;
}

.modal-flex {
    display: flex;
    gap: 4rem;
    margin-top: 1rem;
}

.modal-form-side {
    flex: 1.5; /* Vise prostora za novi pregled */
}

.modal-history-side {
    flex: 1;
    border-left: 1px solid #eee;
    padding-left: 2rem;
}

.history-scroll {
    max-height: 600px;
    overflow-y: auto;
    padding-right: 1rem;
    margin-top: 1rem;
}

.history-scroll::-webkit-scrollbar {
    width: 6px;
}

.history-scroll::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 10px;
}

.exam-record {
    padding: 1.2rem;
    border-left: 4px solid var(--primary);
    background: rgba(216, 163, 140, 0.05);
    margin-bottom: 1.5rem;
    border-radius: 0 12px 12px 0;
    font-size: 0.9rem;
}

.exam-record h4 {
    margin-bottom: 0.5rem;
    color: var(--primary);
}

@media (max-width: 992px) {
    .modal-flex {
        flex-direction: column;
    }
    .modal-history-side {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid #eee;
        padding-top: 2rem;
    }
}

/* Textarea Toolbar styling for bold text */
.textarea-toolbar {
    display: flex;
    gap: 5px;
    background: #fcfcfc;
    border: 1px solid #ddd;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    padding: 6px 12px;
    margin-bottom: 0;
    align-items: center;
}

/* Ensure the textarea below the toolbar merges perfectly */
.textarea-toolbar + textarea {
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
    border-top: none !important;
}

.toolbar-btn {
    background: transparent;
    border: none;
    padding: 6px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    color: #444;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
    border: 1px solid transparent;
}

.toolbar-btn:hover {
    background: #f3f3f3;
    color: var(--primary);
    border-color: #e5e5e5;
}

.toolbar-btn i {
    font-size: 0.95rem;
}

/* Ensure all dashboard textareas and inputs look premium and cohesive */
.dashboard-form textarea,
.dashboard-form input[type="text"],
.dashboard-form input[type="date"],
.dashboard-form input[type="tel"],
.dashboard-form input[type="password"] {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    outline: none;
    transition: var(--transition);
    background: white;
}

.dashboard-form textarea:focus,
.dashboard-form input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(216, 163, 140, 0.15);
}

/* Rich Editor Styling */
.rich-editor {
    width: 100%;
    min-height: 150px;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 0 0 8px 8px;
    font-family: inherit;
    outline: none;
    transition: var(--transition);
    background: white;
    overflow-y: auto;
    white-space: pre-wrap;
    text-align: left;
}

.rich-editor:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(216, 163, 140, 0.15);
}

/* Ensure the rich editor below the toolbar merges perfectly */
.textarea-toolbar + .rich-editor {
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
    border-top: none !important;
}

/* Rich Editor Placeholder styling */
.rich-editor.empty {
    position: relative;
}

.rich-editor.empty:before {
    content: attr(placeholder);
    position: absolute;
    color: #aaa;
    font-style: italic;
    cursor: text;
    pointer-events: none;
}

/* Legal & Info Pages Styling */
.legal-header {
    background-color: #231F1E;
    background-image: linear-gradient(rgba(35, 31, 30, 0.65), rgba(35, 31, 30, 0.65)), url('Slike/dermatolog.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 180px 0 100px;
    text-align: center;
}

.legal-header h1 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.legal-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.legal-content-section {
    padding: 80px 0;
    background: var(--bg-alt);
}

.legal-container {
    max-width: 850px;
    margin: 0 auto;
    background: white;
    padding: 4rem 3rem;
    border-radius: 24px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(216, 163, 140, 0.15);
}

.legal-container h2 {
    font-size: 1.7rem;
    color: var(--secondary);
    margin-top: 3rem;
    margin-bottom: 1.2rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid rgba(216, 163, 140, 0.25);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.legal-container h2:first-of-type {
    margin-top: 0;
}

.legal-container h3 {
    font-size: 1.3rem;
    color: var(--primary-dark);
    margin-top: 2rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.legal-container p {
    margin-bottom: 1.5rem;
    color: #444;
    line-height: 1.75;
    text-align: justify;
}

.legal-container ul, .legal-container ol {
    margin-bottom: 1.8rem;
    padding-left: 1.8rem;
}

.legal-container ul li {
    list-style-type: square;
    margin-bottom: 0.6rem;
    color: #444;
}

.legal-container ol li {
    list-style-type: decimal;
    margin-bottom: 0.6rem;
    color: #444;
}

.legal-container strong {
    color: var(--secondary);
    font-weight: 600;
}

.legal-card {
    background: var(--bg-alt);
    border-left: 4px solid var(--primary);
    padding: 1.8rem;
    border-radius: 0 16px 16px 0;
    margin: 2rem 0;
}

.legal-card p {
    margin-bottom: 0;
    font-style: italic;
    color: #555;
}

@media (max-width: 768px) {
    .legal-header {
        padding: 140px 0 70px;
    }
    .legal-container {
        padding: 2rem 1.5rem;
        border-radius: 16px;
    }
}


