/**
 * TICKETMAX Standalone Legal Pages
 * Consistent shell with home/product standalone; typography optimized for
 * long-form reading (terms, privacy, delivery, returns, security).
 */

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #212529;
    background: #fff;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: #7C3AED; transition: color 0.2s ease; }
a:hover { color: #0085F2; text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0; padding: 0; }



/* Main container */
.tm-legal-main .tm-container {
    max-width: 880px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ═══ MAIN ═══ */
.tm-legal-main {
    padding: 40px 0 80px;
}

/* ═══ HEADER ═══ */
.tm-legal-header {
    margin-bottom: 32px;
    text-align: left;
}
.tm-legal-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 38px;
    font-weight: 700;
    line-height: 1.2;
    color: #212529;
    margin-bottom: 12px;
}
.tm-legal-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, #0085F2, #7C3AED);
    border-radius: 2px;
}

/* ═══ CONTENT ═══ */
.tm-legal-content {
    background: #fff;
    padding: 0;
    color: #374151;
    font-size: 16px;
    line-height: 1.75;
}

/* Generic text elements (overriding Woodmart inline styles removed at PHP level) */
.tm-legal-content h1,
.tm-legal-content h2,
.tm-legal-content h3,
.tm-legal-content h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: #212529;
    margin-top: 36px;
    margin-bottom: 14px;
    line-height: 1.3;
    letter-spacing: normal;
}
.tm-legal-content h1 { font-size: 28px; }
.tm-legal-content h2 { font-size: 24px; text-transform: uppercase; letter-spacing: 1px; }
.tm-legal-content h3 { font-size: 20px; }
.tm-legal-content h4 {
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #7C3AED;
    margin-bottom: 18px;
    /* Inline/short titles in post_content should not feel like section dividers */
}
.tm-legal-content h4:first-child {
    display: none; /* The h4 from the post_content is redundant with our page title */
}

.tm-legal-content h2 + p,
.tm-legal-content h3 + p { margin-top: 8px; }

/* Paragraphs */
.tm-legal-content p {
    margin-bottom: 18px;
    line-height: 1.75;
}

/* Lists */
.tm-legal-content ol,
.tm-legal-content ul {
    margin: 0 0 22px 0;
    padding-left: 24px;
}
.tm-legal-content ol li,
.tm-legal-content ul li {
    margin-bottom: 10px;
    line-height: 1.7;
    padding-left: 6px;
}
.tm-legal-content ol li::marker {
    font-weight: 700;
    color: #7C3AED;
}
.tm-legal-content ul li {
    list-style: none;
    position: relative;
    padding-left: 24px;
}
.tm-legal-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 11px;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #0085F2, #7C3AED);
    border-radius: 50%;
}

/* Bold/strong */
.tm-legal-content strong,
.tm-legal-content b { font-weight: 700; color: #111827; }

/* Links inside content */
.tm-legal-content a {
    color: #7C3AED;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(124, 58, 237, 0.3);
    text-underline-offset: 3px;
    transition: all 0.2s ease;
}
.tm-legal-content a:hover {
    color: #0085F2;
    text-decoration-color: #0085F2;
}

/* <br> spacing inside inline-formatted bullet lists (old WoodMart format) */
.tm-legal-content br + br { display: none; }

/* ═══ META ═══ */
.tm-legal-meta {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid #E5E7EB;
    color: #6B7280;
    font-size: 13px;
}



@media (max-width: 767px) {
    .tm-legal-main { padding: 24px 0 60px; }
    .tm-legal-main .tm-container { padding: 0 16px; }
    .tm-legal-title { font-size: 26px; }
    .tm-legal-content { font-size: 15px; }
    .tm-legal-content h2 { font-size: 20px; }
    .tm-legal-content h3 { font-size: 18px; }
    .tm-legal-content ol,
    .tm-legal-content ul { padding-left: 20px; }
    }

/* Table of contents auto-generated anchor links */
.tm-legal-content h2 { scroll-margin-top: 100px; }
.tm-legal-content h3 { scroll-margin-top: 100px; }

/* Last updated date more visible */
.tm-legal-meta {
    margin-top: 48px;
    padding: 16px 20px;
    border-top: 1px solid #E5E7EB;
    border-radius: 8px;
    background: #F9FAFB;
    color: #4B5563;
    font-size: 14px;
    font-weight: 500;
}
