/* ============================================
   THE LIVERPOOL AGENT — Master Stylesheet
   Breakpoints: 480 / 768 / 968 / 1200
   ============================================ */

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

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

/* ============================================
   CSS Custom Properties
   ============================================ */
:root {
    --spacing-unit: 4px;
    --primary: #C8102E;
    --primary-dark: #A00D24;
    --primary-light: #E31C40;
    --dark: #222222;
    --gray: #717171;
    --light-gray: #B0B0B0;
    --border: #DDDDDD;
    --background: #F7F7F7;
    --white: #FFFFFF;
    --success: #00B140;
    --warning: #FFA500;
    --radius: 12px;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-hover: 0 4px 16px rgba(0,0,0,0.12);
    --transition: all 0.3s ease;
}

/* Dark Mode Variables */
body.dark-mode {
    --dark: #F0F0F0;
    --gray: #B0B0B0;
    --light-gray: #717171;
    --border: #404040;
    --background: #141414;
    --white: #1e1e1e;
}

/* ============================================
   Base
   ============================================ */
body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--background);
    color: var(--dark);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', 'DM Sans', sans-serif;
    font-weight: 600;
    line-height: 1.2;
}

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

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

/* ============================================
   Header & Navigation
   ============================================ */
.header {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 1px 12px rgba(0, 0, 0, 0.04);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0 24px;
    transition: var(--transition);
}

body.dark-mode .header {
    background: rgba(30, 30, 30, 0.92);
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    text-decoration: none;
    flex-shrink: 0;
}

.logo-image {
    height: 22px;
    width: auto;
    display: block;
}

body.dark-mode .logo-image {
    filter: brightness(0) invert(1);
}

.nav-tabs {
    display: flex;
    gap: 8px;
    align-items: center;
}

.nav-tab {
    background: none;
    border: none;
    color: var(--gray);
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 8px;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.nav-tab:hover {
    background: var(--background);
    color: var(--dark);
}

.nav-tab.active {
    color: var(--primary);
    font-weight: 600;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 110;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.hamburger:hover {
    background: var(--background);
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--dark);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Hamburger animation when open */
.hamburger.is-active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.is-active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.is-active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    min-height: calc(100vh - 64px);
    padding: 40px 0;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -64px;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: calc(100% + 64px);
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.6)), 
                url('https://images.unsplash.com/photo-1505833779582-e28ba8f922f8?w=1600') center/cover no-repeat;
    z-index: -1;
}

.hero-content {
    animation: fadeInUp 0.8s ease;
    z-index: 1;
}

.hero-title {
    font-size: clamp(32px, 5vw, 56px);
    line-height: 1.1;
    margin-bottom: 24px;
    color: #fff !important;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: clamp(16px, 2vw, 20px);
    color: rgba(255,255,255,0.9) !important;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
    margin-bottom: 32px;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-image {
    display: none;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    white-space: nowrap;
}

.btn:active {
    transform: scale(0.97);
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: var(--white);
    color: var(--dark);
    border: 2px solid var(--primary);
}

body.dark-mode .btn-secondary {
    background: var(--background);
}

.btn-secondary:hover {
    background: var(--primary);
    color: #fff;
}

.btn-ghost {
    background: transparent;
    color: var(--dark);
    padding: 8px 12px;
}

.btn-ghost:hover {
    background: var(--background);
}

.btn-large {
    padding: 16px 32px;
    font-size: 16px;
}

/* ============================================
   Sections
   ============================================ */
.about-section,
.featured-section,
.reviews-section,
.cta-section {
    padding: 80px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 40px;
}

.section-header-center {
    text-align: center;
    margin-bottom: 48px;
}

.section-title {
    font-size: clamp(28px, 4vw, 42px);
    color: var(--dark);
    margin-bottom: 8px;
    line-height: 1.2;
}

.section-subtitle {
    font-size: clamp(15px, 2vw, 18px);
    color: var(--gray);
    max-width: 600px;
    line-height: 1.5;
}

.section-header-center .section-subtitle {
    margin: 0 auto;
}

/* ============================================
   Glass Effects
   ============================================ */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.1);
    transition: var(--transition);
}

body.dark-mode .glass-card {
    background: rgba(45, 45, 45, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(31, 38, 135, 0.15);
}

.glass-section {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 24px;
    padding: 60px 40px;
    margin-bottom: 60px;
}

body.dark-mode .glass-section {
    background: rgba(45, 45, 45, 0.5);
}

/* ============================================
   Features Grid
   ============================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.feature-card {
    padding: 32px 24px;
    border-radius: var(--radius);
    text-align: center;
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.feature-title {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--dark);
}

.feature-desc {
    color: var(--gray);
    line-height: 1.7;
    font-size: 15px;
}

/* ============================================
   Listings Grid & Cards
   ============================================ */
.listings-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.listing-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}

.listing-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

/* Clickable card wrapper */
.listing-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.listing-card-link:hover {
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

.listing-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.listing-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: var(--shadow);
}

.badge-available {
    color: var(--success);
}

.listing-content {
    padding: 20px;
}

.listing-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.listing-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 4px;
}

.listing-location {
    font-size: 13px;
    color: var(--gray);
}

.listing-price {
    text-align: right;
    flex-shrink: 0;
}

.price-amount {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
}

.price-period {
    font-size: 11px;
    color: var(--gray);
}

.listing-details {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 0;
    border-top: 1px solid var(--border);
    align-items: center;
}

.listing-detail {
    font-size: 13px;
    color: var(--gray);
}

.listing-actions {
    display: flex;
    gap: 8px;
}

/* ============================================
   Status Badges
   ============================================ */
.status-badge {
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.5px;
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 12px;
    border-radius: 6px;
}

.status-available {
    background: var(--success);
    color: #fff;
}

.status-sold {
    background: #dc3545;
    color: #fff;
}

.status-sold-stc {
    background: #ff6b6b;
    color: #fff;
}

/* ============================================
   Condition & Yield Pills (inline, grey)
   ============================================ */
.condition-pill {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    background: #e9ecef;
    color: #495057;
    white-space: nowrap;
}

body.dark-mode .condition-pill {
    background: #3a3a3a;
    color: #ccc;
}

.yield-pill {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    background: #e9ecef;
    color: #495057;
}

body.dark-mode .yield-pill {
    background: #3a3a3a;
    color: #ccc;
}

/* Override old red yield badge */
.yield-badge {
    background: #e9ecef !important;
    color: #495057 !important;
}

body.dark-mode .yield-badge {
    background: #3a3a3a !important;
    color: #ccc !important;
}

/* ============================================
   Investment Stats
   ============================================ */
.investment-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 12px;
    background: var(--background);
    border-radius: 8px;
    margin-top: 12px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat-label {
    font-size: 11px;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
}

.stat-item.title-split .stat-value {
    color: var(--primary);
}

/* ============================================
   Reviews Section
   ============================================ */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.review-card {
    padding: 24px;
    border-radius: var(--radius);
}

.review-stars {
    font-size: 16px;
    margin-bottom: 12px;
    color: #FFB800;
}

.review-text {
    color: var(--dark);
    margin-bottom: 16px;
    font-style: italic;
    line-height: 1.7;
    font-size: 15px;
}

.review-author {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.review-author strong {
    color: var(--dark);
    font-size: 14px;
}

.review-date {
    color: var(--gray);
    font-size: 12px;
}

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
    text-align: center;
}

.cta-title {
    font-size: clamp(28px, 4vw, 42px);
    margin-bottom: 16px;
    color: var(--dark);
}

.cta-subtitle {
    font-size: 18px;
    color: var(--gray);
    margin-bottom: 32px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--white);
    border-top: 1px solid var(--border);
    padding: 60px 24px;
    margin-top: 80px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo-image {
    height: 20px;
    width: auto;
    display: block;
    margin-bottom: 16px;
}

body.dark-mode .footer-logo-image {
    filter: brightness(0) invert(1);
}

.footer-title {
    font-size: 22px;
    color: var(--primary);
    margin-bottom: 8px;
}

.footer-tagline {
    font-size: 13px;
    color: var(--gray);
    margin-bottom: 16px;
}

.footer-text {
    color: var(--gray);
    line-height: 1.7;
    font-size: 14px;
}

.footer-heading {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--dark);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: var(--gray);
    text-decoration: none;
    transition: var(--transition);
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-links li {
    font-size: 14px;
    color: var(--gray);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    text-align: center;
}

.footer-copyright,
.footer-compliance {
    font-size: 13px;
    color: var(--gray);
    margin-bottom: 8px;
}

.footer-compliance a {
    color: var(--primary);
    text-decoration: none;
}

.footer-compliance a:hover {
    text-decoration: underline;
}

/* ============================================
   Dark Mode Toggle
   ============================================ */
.dark-mode-toggle {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--white);
    border: 1px solid var(--border);
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.dark-mode-toggle:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

body.dark-mode .dark-mode-toggle {
    background: #2d2d2d;
    border-color: #555;
}

.sun-icon { display: flex; }
.moon-icon { display: none; }
body.dark-mode .sun-icon { display: none; }
body.dark-mode .moon-icon { display: flex; }

body.dark-mode .dark-mode-toggle svg {
    stroke: #f0f0f0;
}

/* ============================================
   Cookie Notice
   ============================================ */
.cookie-notice {
    position: fixed;
    bottom: 24px;
    right: 24px;
    max-width: 380px;
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    z-index: 998;
    animation: slideInUp 0.4s ease;
    border: 1px solid var(--border);
}

body.dark-mode .cookie-notice {
    border-color: #444;
}

.cookie-content p {
    font-size: 13px;
    color: var(--dark);
    margin-bottom: 16px;
    line-height: 1.6;
}

.cookie-actions {
    display: flex;
    gap: 8px;
}

.cookie-actions .btn {
    flex: 1;
    padding: 10px 16px;
    font-size: 13px;
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(200, 16, 46, 0.5), 0 0 10px rgba(200, 16, 46, 0.3);
    }
    50% {
        box-shadow: 0 0 10px rgba(200, 16, 46, 0.8), 0 0 20px rgba(200, 16, 46, 0.5);
    }
}

.btn-glow {
    animation: glow 2s ease-in-out infinite;
}

/* ============================================
   Utilities
   ============================================ */
.hidden {
    display: none !important;
}

/* ============================================
   RESPONSIVE — 1200px (large tablets / small laptops)
   ============================================ */
@media (max-width: 1200px) {
    .listings-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   RESPONSIVE — 968px (tablets)
   ============================================ */
@media (max-width: 968px) {
    .hero-section {
        grid-template-columns: 1fr;
        min-height: auto;
        padding: 60px 0;
    }

    .hero-featured-carousel {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .glass-section {
        padding: 40px 24px;
    }

    .about-section,
    .featured-section,
    .reviews-section,
    .cta-section {
        padding: 60px 0;
    }
}

/* ============================================
   RESPONSIVE — 768px (mobile landscape / small tablets)
   ============================================ */
@media (max-width: 768px) {
    /* Show hamburger, hide nav */
    .hamburger {
        display: flex;
    }

    .nav-tabs {
        display: none !important;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        height: 100dvh;
        background: #FFFFFF;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        z-index: 105;
        padding: 0 24px;
        overflow-y: auto;
    }

    body.dark-mode .nav-tabs {
        background: #141414;
    }

    .nav-tabs.is-open {
        display: flex !important;
    }

    .nav-tab {
        font-size: 20px;
        padding: 16px 24px;
        width: 100%;
        text-align: center;
        border-radius: 12px;
    }

    .nav-tab:hover {
        background: var(--background);
    }

    /* Logo sizing on mobile */
    .logo-image {
        height: 18px;
    }

    /* Container */
    .container {
        padding: 0 16px;
    }

    .header {
        padding: 0 16px;
    }

    /* Hero */
    .hero-section {
        padding: 40px 0;
    }

    .hero-cta {
        flex-direction: column;
    }

    .hero-cta .btn {
        width: 100%;
    }

    /* Listings */
    .listings-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Reviews */
    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Section header stacks */
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 24px;
    }

    /* CTA */
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .btn {
        width: 100%;
        max-width: 320px;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer {
        padding: 40px 16px;
    }

    /* Sections */
    .about-section,
    .featured-section,
    .reviews-section,
    .cta-section {
        padding: 48px 0;
    }

    .glass-section {
        padding: 32px 20px;
        border-radius: 16px;
    }

    .section-header-center {
        margin-bottom: 32px;
    }

    /* Investment stats */
    .investment-stats {
        grid-template-columns: 1fr 1fr;
    }

    /* Cookie notice mobile */
    .cookie-notice {
        left: 16px;
        right: 16px;
        bottom: 16px;
        max-width: none;
    }

    /* Dark mode toggle on mobile */
    .dark-mode-toggle {
        bottom: 16px;
        left: 16px;
        width: 44px;
        height: 44px;
    }
}

/* ============================================
   RESPONSIVE — 480px (small phones)
   ============================================ */
@media (max-width: 480px) {
    .listing-header {
        flex-direction: column;
        gap: 8px;
    }

    .listing-price {
        text-align: left;
    }

    .listing-details {
        gap: 6px;
    }

    .hero-cta .btn {
        padding: 14px 20px;
        font-size: 14px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .feature-card {
        padding: 24px 20px;
    }

    .btn-large {
        padding: 14px 24px;
        font-size: 15px;
    }
}

/* ============================================
   Page Header (listings, about, etc.)
   ============================================ */
.page-header {
    text-align: center;
    margin-bottom: 32px;
    padding-top: 48px;
}

.page-title {
    font-size: clamp(28px, 5vw, 48px);
    color: var(--dark);
    margin-bottom: 12px;
}

.page-subtitle {
    font-size: clamp(15px, 2vw, 18px);
    color: var(--gray);
}

/* ============================================
   Empty States
   ============================================ */
.empty-state-large {
    text-align: center;
    padding: 80px 24px;
    border-radius: 24px;
}

.empty-icon {
    margin-bottom: 24px;
    color: var(--gray);
}

.empty-state-large h2 {
    font-size: 28px;
    margin-bottom: 12px;
    color: var(--dark);
}

.empty-state-large p {
    font-size: 16px;
    color: var(--gray);
    margin-bottom: 32px;
}

/* ============================================
   Legal Pages (Privacy, Terms, Cookie, GDPR)
   ============================================ */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 48px;
    border-radius: 24px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.legal-title {
    font-size: clamp(28px, 4vw, 42px);
    color: var(--dark);
    margin-bottom: 12px;
}

.legal-date {
    color: var(--gray);
    font-size: 14px;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.legal-section {
    margin-bottom: 40px;
}

.legal-section h2 {
    font-size: 22px;
    color: var(--dark);
    margin-bottom: 16px;
}

.legal-section h3 {
    font-size: 17px;
    color: var(--dark);
    margin: 24px 0 12px;
}

.legal-section p {
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 16px;
    font-size: 15px;
}

.legal-section ul {
    margin: 16px 0;
    padding-left: 24px;
    color: var(--gray);
    line-height: 1.8;
    font-size: 15px;
}

.legal-section li {
    margin-bottom: 8px;
}

.legal-section a {
    color: var(--primary);
    text-decoration: none;
}

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

@media (max-width: 768px) {
    .legal-content {
        padding: 24px 20px;
        margin-top: 24px;
        border-radius: 16px;
    }

    .legal-section {
        margin-bottom: 32px;
    }

    .legal-section h2 {
        font-size: 19px;
    }
}
