/* PixVPS — Terms of service page */

#header-placeholder {
    flex-shrink: 0;
    height: var(--nav-height);
}

main section {
    background-color: var(--bg-color);
    position: relative;
    z-index: 20;
}

.container--wide {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ── Hero ── */

.tm-hero {
    padding: 3rem 0 2.5rem;
    background: linear-gradient(180deg, var(--hero-bg) 0%, var(--bg-color) 100%);
    border-bottom: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}

.tm-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--hero-glow);
    pointer-events: none;
}

.tm-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 720px;
}

.tm-crumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.tm-crumb a {
    color: var(--text-muted);
    transition: color 0.2s;
}

.tm-crumb a:hover {
    color: var(--text-main);
}

.tm-crumb-sep {
    opacity: 0.4;
}

.tm-crumb-current {
    color: var(--text-main);
}

.tm-hero-eyebrow {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0.85rem;
    border-radius: var(--radius-pill);
    background: rgba(201, 81, 24, 0.1);
    border: 1px solid rgba(201, 81, 24, 0.22);
}

.tm-hero h1 {
    font-size: clamp(1.65rem, 4vw, 2.15rem);
    line-height: 1.3;
    margin-bottom: 1.1rem;
    letter-spacing: 0.5px;
    text-transform: none;
}

.tm-hero-lead {
    font-size: 1.02rem;
    line-height: 1.75;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.tm-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.tm-meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.9375rem;
    color: var(--text-muted);
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-pill);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
}

.tm-meta-chip svg {
    color: var(--primary);
    flex-shrink: 0;
}

.tm-meta-chip a {
    color: var(--text-main);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.tm-meta-chip a:hover {
    color: var(--primary);
}

/* ── Body layout ── */

.tm-body {
    padding: 3rem 0 4rem;
}

.tm-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 2.5rem;
    align-items: start;
    min-width: 0;
    max-width: 100%;
}

.tm-sidebar {
    position: sticky;
    top: calc(var(--nav-height) + 1.25rem);
}

.tm-nav-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.85rem;
    opacity: 0.75;
}

.tm-nav {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.75rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    backdrop-filter: blur(var(--glass-blur));
}

.tm-nav-link {
    display: block;
    padding: 0.5rem 0.65rem;
    font-size: 0.9375rem;
    line-height: 1.45;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    border-left: 2px solid transparent;
    transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.tm-nav-link:hover {
    color: var(--text-main);
    background: var(--glass-bg-light);
}

.tm-nav-link.is-active {
    color: var(--text-main);
    background: rgba(201, 81, 24, 0.12);
    border-left-color: var(--primary);
    font-weight: 500;
}

/* ── Article sections ── */

.tm-article {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    min-width: 0;
    max-width: 100%;
}

.tm-block {
    scroll-margin-top: calc(var(--nav-height) + 1.5rem);
    padding: 1.75rem 1.85rem;
    background: var(--glass-bg-elevated);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--glass-shadow);
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.tm-block h2 {
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: none;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--glass-border);
}

.tm-block h3 {
    font-size: 1.0625rem;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    color: var(--text-main);
    margin: 1.35rem 0 0.5rem;
}

.tm-block p {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.tm-block p:last-child {
    margin-bottom: 0;
}

.tm-block a {
    color: var(--text-main);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s;
}

.tm-block a:hover {
    color: var(--primary);
}

.tm-block strong {
    color: var(--text-main);
    font-weight: 600;
}

.tm-list {
    margin: 0.5rem 0 0.85rem;
    padding-left: 1.15rem;
}

.tm-list li {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 0.45rem;
    list-style: disc;
}

.tm-list li::marker {
    color: var(--primary);
}

/* Highlight stats */
.tm-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 1.1rem 0 1.25rem;
}

.tm-stat {
    text-align: center;
    padding: 1rem 0.75rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
}

.tm-stat-val {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.25rem;
}

.tm-stat-label {
    font-size: 0.875rem;
    line-height: 1.4;
    color: var(--text-muted);
}

/* Prohibited grid */
.tm-forbidden {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
    margin: 1rem 0;
}

.tm-forbidden-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--text-muted);
    padding: 0.65rem 0.75rem;
    background: rgba(201, 81, 24, 0.06);
    border: 1px solid rgba(201, 81, 24, 0.18);
    border-radius: var(--radius-sm);
}

.tm-forbidden-item svg {
    flex-shrink: 0;
    margin-top: 1px;
    color: var(--primary);
}

/* Notice boxes */
.tm-notice {
    display: flex;
    gap: 0.75rem;
    padding: 1rem 1.1rem;
    margin: 1rem 0 0.5rem;
    border-radius: var(--radius-md);
    font-size: 1rem;
    line-height: 1.65;
    min-width: 0;
}

.tm-notice p {
    min-width: 0;
    margin-bottom: 0;
}

.tm-notice svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.tm-notice--warn {
    background: rgba(201, 81, 24, 0.1);
    border: 1px solid rgba(201, 81, 24, 0.28);
    color: var(--text-muted);
}

.tm-notice--warn svg {
    color: var(--primary);
}

.tm-notice--info {
    background: rgba(245, 178, 92, 0.06);
    border: 1px solid var(--glass-border-strong);
    color: var(--text-muted);
}

.tm-notice--info svg {
    color: var(--text-main);
}

/* Contact list */
.tm-contact-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 1rem;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.tm-contact-row {
    display: flex;
    gap: 0.75rem;
    padding: 0.9rem 1.1rem;
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text-muted);
    border-bottom: 1px solid var(--glass-border);
    min-width: 0;
}

.tm-contact-row > div {
    min-width: 0;
    flex: 1;
}

.tm-contact-row:last-child {
    border-bottom: none;
}

.tm-contact-row svg {
    flex-shrink: 0;
    margin-top: 3px;
    color: var(--primary);
}

.tm-contact-row strong {
    color: var(--text-main);
}

/* Footer CTA */
.tm-footer-cta {
    padding: 3.5rem 0 4.5rem;
    border-top: 1px solid var(--glass-border);
    background: linear-gradient(0deg, var(--hero-bg) 0%, var(--bg-color) 100%);
}

.tm-footer-panel {
    text-align: center;
    max-width: 560px;
    margin: 0 auto;
    padding: 2.25rem 2rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border-strong);
    border-radius: var(--radius-lg);
    box-shadow: var(--glass-glow);
}

.tm-footer-panel h2 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    text-transform: none;
    letter-spacing: 0.5px;
}

.tm-footer-panel p {
    font-size: 1.0625rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.tm-footer-actions {
    display: flex;
    gap: 0.85rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-ribbon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #fde0a6 0%, var(--text-main) 45%, #d49448 100%);
    color: var(--bg-color);
    padding: 0.75rem 2rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 1px solid rgba(255, 255, 255, 0.15);
    clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 12px 100%, 0% 50%);
    box-shadow: 0 4px 20px rgba(245, 178, 92, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.35);
    text-decoration: none;
}

.btn-ribbon:hover {
    background: linear-gradient(180deg, #fff 0%, #fde0a6 50%, var(--text-main) 100%);
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 32px rgba(245, 178, 92, 0.4);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg-light);
    color: var(--text-main);
    border: 1px solid var(--glass-border-strong);
    border-radius: var(--radius-sm);
    padding: 0.75rem 2rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
}

.btn-outline:hover {
    background: var(--text-main);
    color: var(--bg-color);
    border-color: var(--text-main);
}

/* ── Responsive ── */

@media (max-width: 900px) {
    .container--wide {
        padding: 0 16px;
        max-width: 100%;
        overflow-x: clip;
    }

    .tm-body {
        padding: 2rem 0 3rem;
        overflow-x: clip;
    }

    .tm-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.25rem;
        width: 100%;
    }

    .tm-sidebar {
        position: sticky;
        top: calc(var(--nav-height) + 0.5rem);
        z-index: 30;
        width: 100%;
        max-width: 100%;
        padding-bottom: 0.5rem;
        background: linear-gradient(180deg, var(--bg-color) 75%, transparent);
    }

    .tm-nav-label {
        display: none;
    }

    .tm-crumb {
        flex-wrap: wrap;
        row-gap: 0.35rem;
        font-size: 0.875rem;
    }

    .tm-nav {
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
        touch-action: pan-x pan-y;
    }

    .tm-nav::-webkit-scrollbar {
        display: none;
    }

    .tm-nav-link {
        flex-shrink: 0;
        white-space: nowrap;
        border-left: none;
        border-bottom: 2px solid transparent;
    }

    .tm-nav-link.is-active {
        border-left: none;
        border-bottom-color: var(--primary);
    }

    .tm-stats {
        grid-template-columns: minmax(0, 1fr);
    }

    .tm-forbidden {
        grid-template-columns: minmax(0, 1fr);
    }

    .tm-footer-cta {
        padding: 2.5rem 0 3rem;
    }

    .tm-footer-panel {
        padding: 1.5rem 1.25rem;
    }

    .tm-footer-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .tm-footer-actions .btn-ribbon,
    .tm-footer-actions .btn-outline {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .tm-block {
        padding: 1.15rem 1rem;
    }

    .tm-hero {
        padding: 2.25rem 0 2rem;
    }

    .tm-meta-chip {
        max-width: 100%;
        white-space: normal;
    }

    .tm-list li,
    .tm-forbidden-item {
        overflow-wrap: anywhere;
    }
}
