/* ═══════════════════════════════════════════
   TIMILUC SRL — Termeni și Condiții
   Legal text with sticky sidebar navigation,
   section anchors, headings hierarchy.
   ═══════════════════════════════════════════ */


/* ─── PAGE WRAPPER ─── */
.tml-terms-page {
    background: var(--tml-bg);
    min-height: 100vh;
    padding-top: clamp(100px, 14vw, 140px);
}


/* ─── HERO ─── */
.tml-terms-hero {
    text-align: center;
    padding: 0 24px clamp(40px, 6vw, 60px);
}

.tml-terms-hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--tml-gold);
    margin-bottom: 1rem;
}

.tml-terms-hero-tag::before {
    content: '';
    width: 20px;
    height: 1px;
    background: var(--tml-gold-dim);
}

.tml-terms-hero h1 {
    font-family: var(--tml-font-serif);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--tml-white);
    line-height: 1.15;
    margin-bottom: 0.75rem;
}

.tml-terms-hero p {
    font-size: 0.82rem;
    color: var(--tml-muted);
    font-weight: 400;
}


/* ─── LAYOUT: SIDEBAR + CONTENT ─── */
.tml-terms-layout {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px clamp(60px, 10vw, 120px);
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

@media (min-width: 768px) {
    .tml-terms-layout {
        grid-template-columns: 220px 1fr;
        gap: 40px;
    }
}

@media (min-width: 1024px) {
    .tml-terms-layout {
        grid-template-columns: 240px 1fr;
    }
}


/* ─── STICKY SIDEBAR ─── */
.tml-terms-sidebar {
    display: none;
}

@media (min-width: 768px) {
    .tml-terms-sidebar {
        display: block;
        position: sticky;
        top: var(--tml-header-offset, 108px);
        align-self: flex-start;
        max-height: calc(100vh - var(--tml-header-offset, 108px) - 40px);
        overflow-y: auto;
    }
}

.tml-terms-sidebar-title {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--tml-muted);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.tml-terms-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.tml-terms-sidebar-nav li {
    list-style: none;
}

.tml-terms-sidebar-link {
    display: block;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--tml-muted);
    text-decoration: none;
    transition: all var(--tml-transition);
    line-height: 1.4;
    border-left: 2px solid transparent;
}

.tml-terms-sidebar-link:hover {
    background: rgba(255, 255, 255, 0.02);
    color: var(--tml-white);
}

.tml-terms-sidebar-link.active {
    background: rgba(0, 206, 209, 0.04);
    color: var(--tml-cyan);
    border-left-color: var(--tml-cyan);
}


/* ─── CONTENT AREA ─── */
.tml-terms-content {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 20px;
    padding: clamp(24px, 4vw, 48px);
}


/* ─── SECTION ANCHORS ─── */
.tml-terms-section {
    scroll-margin-top: var(--tml-header-offset, 108px);
    margin-bottom: 2rem;
}

.tml-terms-section:last-child {
    margin-bottom: 0;
}


/* ─── HEADINGS ─── */
.tml-terms-content h2 {
    font-family: var(--tml-font-serif);
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    font-weight: 700;
    color: var(--tml-white);
    line-height: 1.2;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.tml-terms-content h3 {
    font-family: var(--tml-font-serif);
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 700;
    color: var(--tml-white);
    line-height: 1.25;
    margin: 1.5rem 0 0.5rem;
}

.tml-terms-content h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--tml-white);
    margin: 1.25rem 0 0.5rem;
}


/* ─── PARAGRAPHS ─── */
.tml-terms-content p {
    font-size: 0.88rem;
    color: var(--tml-txt);
    line-height: 1.8;
    font-weight: 300;
    margin-bottom: 1em;
}

.tml-terms-content p:last-child {
    margin-bottom: 0;
}

.tml-terms-content strong {
    font-weight: 700;
    color: var(--tml-white);
}


/* ─── LINKS ─── */
.tml-terms-content a {
    color: var(--tml-cyan);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(0, 206, 209, 0.3);
    transition: text-decoration-color var(--tml-transition);
}

.tml-terms-content a:hover {
    text-decoration-color: var(--tml-cyan);
}


/* ─── LISTS ─── */
.tml-terms-content ul,
.tml-terms-content ol {
    margin-bottom: 1.25em;
    padding-left: 0;
}

.tml-terms-content ul {
    list-style: none;
}

.tml-terms-content ul li {
    position: relative;
    padding-left: 1.25em;
    margin-bottom: 0.5em;
    font-size: 0.88rem;
    color: var(--tml-txt);
    line-height: 1.7;
    font-weight: 300;
}

.tml-terms-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--tml-cyan);
    opacity: 0.5;
}

.tml-terms-content ol {
    padding-left: 1.5em;
}

.tml-terms-content ol li {
    margin-bottom: 0.5em;
    font-size: 0.88rem;
    color: var(--tml-txt);
    line-height: 1.7;
    font-weight: 300;
}


/* ─── LAST UPDATED ─── */
.tml-terms-updated {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 0.75rem;
    color: var(--tml-muted);
    font-weight: 400;
}


/* ─── RESPONSIVE ─── */
@media (max-width: 767px) {
    .tml-terms-content {
        padding: 20px;
    }

    /* Show mobile TOC */
    .tml-terms-mobile-toc {
        display: block;
        margin-bottom: 24px;
        background: rgba(255, 255, 255, 0.02);
        border: 1px solid rgba(255, 255, 255, 0.04);
        border-radius: 12px;
        padding: 16px;
    }

    .tml-terms-mobile-toc-title {
        font-size: 0.7rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.12em;
        color: var(--tml-muted);
        margin-bottom: 10px;
    }

    .tml-terms-mobile-toc-list {
        display: flex;
        flex-direction: column;
        gap: 6px;
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .tml-terms-mobile-toc-list li {
        list-style: none;
    }

    .tml-terms-mobile-toc-list a {
        font-size: 0.75rem;
        color: var(--tml-cyan);
        text-decoration: none;
        font-weight: 500;
    }
}

@media (min-width: 768px) {
    .tml-terms-mobile-toc {
        display: none;
    }
}
