/* ============================================================
   MBTT DOMIVITA – Main Stylesheet
   ============================================================ */

/* 1. Variables
   2. Reset & Base
   3. Typography
   4. Layout & Utilities
   5. Buttons
   6. Header
   7. Hero
   8. About
   9. Services
   10. Process
   11. Chairman
   12. Why Us
   13. FAQ
   14. Contact & Forms
   15. Footer
   16. Responsive
   ============================================================ */

/* ── 1. Variables ─────────────────────────────────────────── */
:root {
    --primary:       #1A7F78;
    --primary-dark:  #12665F;
    --accent:        #C9A227;
    --accent-dark:   #b0891f;
    --bg:            #FFFFFF;
    --bg-soft:       #F7F7F5;
    --text:          #2B2B2B;
    --muted:         #6B7280;
    --border:        #E7E5E4;
    --shadow:        0 2px 16px rgba(0,0,0,0.07);
    --shadow-hover:  0 8px 32px rgba(0,0,0,0.12);
    --radius:        10px;
    --radius-sm:     6px;
    --transition:    0.2s ease;
    --header-h:      72px;
}

/* ── 2. Reset & Base ──────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font: inherit;
}

/* ── 3. Typography ────────────────────────────────────────── */
h1 {
    font-size: clamp(34px, 4.5vw, 54px);
    font-weight: 700;
    line-height: 1.13;
    letter-spacing: -0.025em;
}

h2 {
    font-size: clamp(26px, 3.2vw, 38px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.015em;
}

h3 {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.35;
}

h4 {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

p {
    line-height: 1.7;
}

/* ── 4. Layout & Utilities ────────────────────────────────── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 96px 0;
}

.section-soft {
    background: var(--bg-soft);
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 56px;
}

.section-intro {
    font-size: 17px;
    color: var(--muted);
    margin-top: 14px;
    line-height: 1.7;
}

.eyebrow {
    display: inline-block;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary);
    background: rgba(26, 127, 120, 0.09);
    padding: 5px 13px;
    border-radius: 100px;
    margin-bottom: 18px;
}

.eyebrow-light {
    background: rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.9);
}

/* ── 5. Buttons ───────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: all var(--transition);
    text-decoration: none;
    cursor: pointer;
    border: 2px solid transparent;
    white-space: nowrap;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 18px rgba(26,127,120,0.28);
}

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

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-1px);
}

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

.btn-accent:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 18px rgba(201,162,39,0.28);
}

/* ── 6. Header ────────────────────────────────────────────── */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--bg);
    border-bottom: 1px solid transparent;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.header.scrolled {
    border-color: var(--border);
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    height: var(--header-h);
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-img {
    height: 38px;
    width: auto;
    display: block;
}

.footer-logo .logo-img {
    height: 34px;
}

/* Nav */
.nav {
    flex: 1;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 2px;
    justify-content: center;
}

.nav-link {
    padding: 7px 13px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    border-radius: var(--radius-sm);
    transition: color var(--transition), background var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    background: rgba(26,127,120,0.08);
}

.header-cta {
    flex-shrink: 0;
    padding: 9px 20px;
    font-size: 13.5px;
}

/* Hamburger */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 6px;
    margin-left: auto;
    border-radius: var(--radius-sm);
    transition: background var(--transition);
}

.menu-toggle:hover {
    background: var(--bg-soft);
}

.menu-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Main offset for fixed header */
main {
    padding-top: var(--header-h);
}

/* ── 7. Hero ──────────────────────────────────────────────── */
.hero {
    padding-top: 72px;
    padding-bottom: 88px;
    overflow: hidden;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 56px;
    align-items: center;
}

.hero-content {
    max-width: 560px;
}

.hero-content h1 {
    margin-bottom: 20px;
}

.hero-text {
    font-size: 17px;
    color: var(--muted);
    margin-bottom: 32px;
    max-width: 460px;
    line-height: 1.7;
}

.hero-ctas {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.hero-badges {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text);
}

.hero-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 24px 64px rgba(0,0,0,0.11);
}

/* ── 8. About ─────────────────────────────────────────────── */
.about-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-image img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.about-content h2 {
    margin-bottom: 18px;
}

.about-content > p {
    color: var(--muted);
    font-size: 16.5px;
    margin-bottom: 28px;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-weight: 500;
    font-size: 15.5px;
}

.feature-list svg {
    flex-shrink: 0;
    margin-top: 1px;
}

/* ── 9. Services ──────────────────────────────────────────── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.service-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px 26px;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(26,127,120,0.2);
}

.service-icon {
    width: 52px;
    height: 52px;
    background: rgba(26,127,120,0.08);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.service-card h3 {
    font-size: 17px;
    margin-bottom: 10px;
}

.service-card p {
    color: var(--muted);
    font-size: 14.5px;
    line-height: 1.65;
}

/* ── 10. Process ──────────────────────────────────────────── */
.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    position: relative;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 26px;
    left: 14%;
    right: 14%;
    height: 2px;
    background: var(--border);
    z-index: 0;
}

.process-step {
    text-align: center;
    padding: 0 8px;
    position: relative;
}

.step-number {
    width: 52px;
    height: 52px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    margin: 0 auto 20px;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    box-shadow: 0 0 0 5px var(--bg-soft);
}

.step-content h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.step-content p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
}

/* ── 11. Chairman ─────────────────────────────────────────── */
.chairman {
    background: var(--primary-dark);
    color: #fff;
}

.chairman-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.chairman-content h2 {
    color: #fff;
    margin-bottom: 12px;
}

.chairman-subtitle {
    font-size: 17px;
    color: rgba(255,255,255,0.8);
    font-weight: 500;
    margin-bottom: 16px;
    line-height: 1.6;
}

.chairman-text {
    color: rgba(255,255,255,0.72);
    margin-bottom: 28px;
    font-size: 16px;
}

.chairman-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 24px;
    margin-bottom: 36px;
}

.chairman-list li {
    font-size: 14.5px;
    color: rgba(255,255,255,0.82);
    padding-left: 18px;
    position: relative;
    line-height: 1.5;
}

.chairman-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 600;
}

.chairman-image img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    border-radius: var(--radius);
    opacity: 0.88;
}

/* ── 12. Why Us ───────────────────────────────────────────── */
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.why-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 22px 20px;
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: box-shadow var(--transition), transform var(--transition);
}

.why-item:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.why-icon {
    flex-shrink: 0;
    margin-top: 2px;
}

.why-item h3 {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.45;
}

/* ── 13. FAQ ──────────────────────────────────────────────── */
.faq .container {
    max-width: 800px;
}

.accordion {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.accordion-item {
    border-bottom: 1px solid var(--border);
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-btn {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 26px;
    text-align: left;
    background: #fff;
    font-size: 15.5px;
    font-weight: 500;
    color: var(--text);
    gap: 16px;
    transition: background var(--transition);
}

.accordion-btn:hover {
    background: var(--bg-soft);
}

.accordion-btn[aria-expanded="true"] {
    color: var(--primary);
}

.accordion-icon {
    flex-shrink: 0;
    transition: transform 0.28s ease;
}

.accordion-btn[aria-expanded="true"] .accordion-icon {
    transform: rotate(180deg);
}

.accordion-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: var(--bg-soft);
}

.accordion-panel p {
    padding: 4px 26px 22px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.7;
}

/* ── 14. Contact & Forms ──────────────────────────────────── */
.contact-inner {
    display: grid;
    grid-template-columns: 1fr 1.45fr;
    gap: 64px;
    align-items: start;
}

.contact-info h2 {
    margin-bottom: 16px;
}

.contact-info > p {
    color: var(--muted);
    font-size: 16.5px;
    margin-bottom: 32px;
    line-height: 1.7;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
}

.contact-detail a {
    color: var(--text);
    font-weight: 500;
    transition: color var(--transition);
}

.contact-detail a:hover {
    color: var(--primary);
}

.contact-detail-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.contact-detail-text span {
    font-weight: 500;
    font-size: 15px;
    color: var(--text);
}

.contact-detail-text small {
    font-size: 13px;
    color: var(--muted);
}

/* ── Oblast správy ────────────────────────────────────────── */
#serviceMap {
    height: 420px;
    border-radius: 12px;
    margin-bottom: 2rem;
    border: 1px solid var(--border);
    overflow: hidden;
}

.area-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 16px;
}

.area-tag {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    transition: border-color var(--transition), color var(--transition);
}

.area-tag:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.area-tag--muted {
    border-style: dashed;
    color: var(--muted);
    font-weight: 400;
}

/* Form */
.contact-form {
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 36px;
    box-shadow: var(--shadow);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 18px;
}

.form-group:last-of-type {
    margin-bottom: 0;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

label {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text);
}

.required {
    color: var(--primary);
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    padding: 11px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    color: var(--text);
    background: var(--bg);
    font-family: inherit;
    width: 100%;
    transition: border-color var(--transition), box-shadow var(--transition);
}

input::placeholder,
textarea::placeholder {
    color: #aaa;
}

input:focus,
textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26,127,120,0.1);
    outline: none;
}

input.error,
textarea.error {
    border-color: #dc2626;
    box-shadow: none;
}

textarea {
    resize: vertical;
    min-height: 108px;
}

.field-error {
    font-size: 12.5px;
    color: #dc2626;
    min-height: 18px;
    line-height: 1.4;
}

.form-checkbox {
    align-items: flex-start;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13.5px;
    color: var(--muted);
    cursor: pointer;
    font-weight: 400;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: var(--primary);
}

.checkbox-label a {
    color: var(--primary);
    text-decoration: underline;
}

.form-status {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    display: none;
    margin-bottom: 16px;
    line-height: 1.5;
}

.form-status.success {
    display: block;
    background: rgba(26,127,120,0.09);
    color: var(--primary-dark);
    border: 1px solid rgba(26,127,120,0.2);
}

.form-status.error {
    display: block;
    background: rgba(220,38,38,0.07);
    color: #dc2626;
    border: 1px solid rgba(220,38,38,0.18);
}

.btn-submit {
    width: 100%;
    padding: 14px;
    margin-top: 4px;
}

/* Honeypot – vizuálně schované, boti to vyplní */
.form-hp {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.btn-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* ── 15. Footer ───────────────────────────────────────────── */
.footer {
    background: #1c1c1c;
    color: rgba(255,255,255,0.7);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1.2fr 1fr;
    gap: 40px;
    padding-top: 64px;
    padding-bottom: 48px;
}

.footer-brand-text {
    font-size: 13.5px;
    line-height: 1.7;
    margin-top: 14px;
    max-width: 280px;
    color: rgba(255,255,255,0.55);
}

.footer h4 {
    color: rgba(255,255,255,0.4);
    margin-bottom: 16px;
}

.footer-nav ul,
.footer-services ul,
.footer-contact ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-nav a,
.footer-services a,
.footer-contact a {
    font-size: 13.5px;
    color: rgba(255,255,255,0.6);
    transition: color var(--transition);
}

.footer-nav a:hover,
.footer-services a:hover,
.footer-contact a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    font-size: 12.5px;
    color: rgba(255,255,255,0.35);
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom a {
    color: rgba(255,255,255,0.45);
    text-decoration: underline;
    transition: color var(--transition);
}

.footer-bottom a:hover {
    color: #fff;
}

/* ── 16. Responsive ───────────────────────────────────────── */

/* Large tablet */
@media (max-width: 1100px) {
    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

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

    .footer-brand-text {
        max-width: 480px;
    }
}

/* Tablet */
@media (max-width: 960px) {
    .section {
        padding: 72px 0;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-image {
        order: -1;
    }

    .hero-image img {
        height: 380px;
    }

    .hero-badges {
        grid-template-columns: 1fr 1fr;
    }

    .about-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image img {
        height: 320px;
    }

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

    .chairman-inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .chairman-image {
        order: -1;
    }

    .chairman-image img {
        height: 340px;
    }

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

    .contact-inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }

    /* Mobile nav overlay */
    .nav {
        position: absolute;
        top: var(--header-h);
        left: 0;
        right: 0;
        background: #fff;
        border-top: 1px solid var(--border);
        border-bottom: 1px solid var(--border);
        padding: 12px 0;
        box-shadow: 0 8px 24px rgba(0,0,0,0.08);
        display: none;
    }

    .nav.open {
        display: block;
    }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding: 0 12px;
    }

    .nav-link {
        padding: 12px 14px;
        font-size: 15px;
    }

    .header-cta {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .menu-toggle.open .menu-bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-toggle.open .menu-bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.open .menu-bar:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    /* Process – vertical stack on mobile */
    .process-steps {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .process-steps::before {
        display: none;
    }

    .process-step {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        padding: 0 0 32px 0;
        gap: 20px;
    }

    .process-step:last-child {
        padding-bottom: 0;
    }

    .step-number {
        flex-shrink: 0;
        margin: 0;
        box-shadow: none;
    }

    /* Services – 1 column */
    .services-grid {
        grid-template-columns: 1fr;
    }

    /* Why – 1 column */
    .why-grid {
        grid-template-columns: 1fr;
    }

    /* Chairman list – 1 column */
    .chairman-list {
        grid-template-columns: 1fr;
    }

    /* Form */
    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 24px 20px;
    }

    /* Footer */
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-top: 48px;
        padding-bottom: 36px;
    }

    .footer-brand {
        grid-column: auto;
        padding-top: 8px;
    }

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

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .section {
        padding: 52px 0;
    }

    .hero {
        padding-top: 48px;
        padding-bottom: 60px;
    }

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

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

    .hero-badges {
        grid-template-columns: 1fr;
    }

    .hero-image img {
        height: 260px;
    }

    .section-header {
        margin-bottom: 36px;
    }
}

/* ============================================================
   Právní stránky (GDPR apod.)
   ============================================================ */

/* ── Page header ──────────────────────────────────────────── */
.legal-hero {
    padding: 56px 0 48px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}

.legal-hero-inner {
    max-width: 800px;
}

.legal-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--muted);
    margin-bottom: 24px;
    transition: color var(--transition);
}

.legal-back:hover {
    color: var(--primary);
}

.legal-hero h1 {
    font-size: clamp(26px, 3.2vw, 40px);
    margin-bottom: 16px;
}

.legal-hero-text {
    font-size: 16px;
    color: var(--muted);
    line-height: 1.75;
    margin-bottom: 16px;
    max-width: 620px;
}

.legal-updated {
    font-size: 13px;
    color: var(--muted);
}

/* ── Layout ───────────────────────────────────────────────── */
.legal-content {
    padding: 64px 0 96px;
}

.legal-layout {
    display: grid;
    grid-template-columns: 210px 1fr;
    gap: 56px;
    align-items: start;
    max-width: 1000px;
}

/* ── TOC sidebar ──────────────────────────────────────────── */
.legal-toc-inner {
    position: sticky;
    top: calc(var(--header-h) + 28px);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 18px;
}

.legal-toc-title {
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 12px;
    padding-left: 8px;
}

.legal-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.legal-toc-list a {
    display: block;
    font-size: 13px;
    color: var(--muted);
    font-weight: 500;
    padding: 6px 8px;
    border-radius: var(--radius-sm);
    line-height: 1.45;
    transition: color var(--transition), background var(--transition);
}

.legal-toc-list a:hover {
    color: var(--primary);
    background: rgba(26,127,120,0.07);
}

/* ── Article ──────────────────────────────────────────────── */
.legal-article {
    min-width: 0;
    max-width: 680px;
}

.legal-section {
    padding-bottom: 52px;
    margin-bottom: 52px;
    border-bottom: 1px solid var(--border);
}

.legal-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.legal-section h2 {
    font-size: clamp(19px, 2vw, 24px);
    font-weight: 700;
    color: var(--text);
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--bg-soft);
}

.legal-section h3 {
    font-size: 15.5px;
    font-weight: 600;
    color: var(--text);
    margin-top: 28px;
    margin-bottom: 10px;
}

.legal-section h3:first-of-type {
    margin-top: 20px;
}

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

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

/* ── Lists (key fix: reset browser ul padding) ────────────── */
.legal-section ul {
    padding: 0;               /* fix: reset browser default padding-left: 40px */
    margin: 16px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    list-style: none;
}

.legal-section ul li {
    font-size: 15px;
    color: var(--muted);
    line-height: 1.75;
    padding-left: 20px;
    position: relative;
}

.legal-section ul li::before {
    content: '–';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary);
    font-weight: 600;
    line-height: 1.75;
}

.legal-section a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: opacity var(--transition);
}

.legal-section a:hover {
    opacity: 0.72;
}

/* ── Info box ─────────────────────────────────────────────── */
.legal-box {
    background: rgba(26,127,120,0.05);
    border-left: 3px solid var(--primary);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 18px 20px;
    margin: 22px 0;
}

.legal-box p {
    margin: 0 !important;
    font-size: 15px;
    color: var(--text);
    line-height: 1.75;
}

/* ── Table ────────────────────────────────────────────────── */
.legal-table-wrap {
    overflow-x: auto;
    margin: 22px 0;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14.5px;
}

.legal-table th {
    background: var(--bg-soft);
    font-weight: 600;
    font-size: 12.5px;
    text-align: left;
    padding: 12px 16px;
    color: var(--text);
    border-bottom: 1px solid var(--border);
}

.legal-table td {
    padding: 13px 16px;
    color: var(--muted);
    border-bottom: 1px solid var(--border);
    line-height: 1.6;
    vertical-align: top;
}

.legal-table tr:last-child td {
    border-bottom: none;
}

/* ── Rights list ──────────────────────────────────────────── */
.legal-rights {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 20px 0;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.legal-right {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 0;
    border-bottom: 1px solid var(--border);
}

.legal-right:last-child {
    border-bottom: none;
}

.legal-right h3 {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text);
    margin: 0;
    padding: 18px 20px;
    background: var(--bg-soft);
    border-right: 1px solid var(--border);
    display: flex;
    align-items: flex-start;
    line-height: 1.5;
}

.legal-right p {
    font-size: 14px;
    margin: 0 !important;
    padding: 18px 20px;
    line-height: 1.75;
    background: #fff;
}

/* ── Bottom CTA ───────────────────────────────────────────── */
.legal-footer-cta {
    margin-top: 56px;
    padding: 32px 36px;
    background: var(--bg-soft);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.legal-footer-cta p {
    font-size: 16.5px;
    font-weight: 500;
    color: var(--text);
    margin: 0;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 960px) {
    .legal-layout {
        grid-template-columns: 1fr;
        gap: 36px;
        max-width: 100%;
    }

    .legal-toc-inner {
        position: static;
    }

    .legal-article {
        max-width: 100%;
    }
}

@media (max-width: 640px) {
    .legal-hero {
        padding: 44px 0 36px;
    }

    .legal-content {
        padding: 44px 0 72px;
    }

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

    .legal-right {
        grid-template-columns: 1fr;
    }

    .legal-right h3 {
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 14px 16px;
    }

    .legal-right p {
        padding: 14px 16px;
    }

    .legal-footer-cta {
        flex-direction: column;
        align-items: flex-start;
        padding: 24px 20px;
    }

    .legal-footer-cta .btn {
        width: 100%;
    }
}
