/* ========================================
   VTX Legal Pages

   Scope:
   - Privacy Policy
   - Terms of Use
   - Future legal / policy pages

   Architecture:
   - Gutenberg provides semantic content
     structure only
   - Blocksy controls global page container
     and theme-level typography
   - This file controls legal-page reading
     width, heading hierarchy and content
     spacing

   Required classes:
   - .vtx-legal-content
   - .vtx-legal-meta

   Depends on:
   - vtx-tokens.css
   - Blocksy Global Styles
======================================== */


/* ========================================
   01. Legal Content Container
======================================== */

.vtx-legal-content {
    width: 100%;
    max-width: 860px;

    margin-inline: auto;

    padding-top: 64px;
    padding-bottom: 64px;
}


/* ========================================
   02. Page Title
======================================== */

.vtx-legal-content h1 {
    margin-top: 0 !important;
    margin-bottom: 24px !important;

    font-size: 40px;
    line-height: 1.15;
    font-weight: 700;

    letter-spacing: -0.02em;
}


/* ========================================
   03. Legal Meta
======================================== */

.vtx-legal-meta {
    margin-top: 0 !important;
    margin-bottom: 28px !important;

    color: var(--vtx-muted);

    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
}


/* ========================================
   04. Heading Hierarchy
======================================== */

.vtx-legal-content h2 {
    margin-top: 48px !important;
    margin-bottom: 20px !important;

    font-size: 26px;
    line-height: 1.3;
    font-weight: 700;

    letter-spacing: -0.015em;
}


.vtx-legal-content h3 {
    margin-top: 40px !important;
    margin-bottom: 16px !important;

    font-size: 21px;
    line-height: 1.4;
    font-weight: 600;

    letter-spacing: -0.01em;
}


.vtx-legal-content h4 {
    margin-top: 32px !important;
    margin-bottom: 12px !important;

    font-size: 18px;
    line-height: 1.4;
    font-weight: 600;

    letter-spacing: 0;
}


/* ========================================
   05. Paragraphs
======================================== */

.vtx-legal-content p {
    font-size: 16px;
    line-height: 1.7;
}


.vtx-legal-content strong {
    font-weight: 600;
}


/* ========================================
   06. Lists
======================================== */

.vtx-legal-content ul,
.vtx-legal-content ol {
    margin-top: 12px !important;
    margin-bottom: 16px !important;

    padding-left: 2em !important;

    font-size: 16px !important;
    line-height: 1.6 !important;
}


.vtx-legal-content li {
    margin: 0 !important;
}


.vtx-legal-content li + li {
    margin-top: 6px !important;
}


/* ========================================
   07. Paragraph → List Spacing
======================================== */

.vtx-legal-content p:has(+ ul),
.vtx-legal-content p:has(+ ol) {
    margin-bottom: 0 !important;
}


.vtx-legal-content p + ul,
.vtx-legal-content p + ol {
    margin-top: 12px !important;
}


/* ========================================
   08. Links
======================================== */

.vtx-legal-content a {
    text-decoration-thickness: 1px;
    text-underline-offset: 0.15em;
}


/* ========================================
   09. Tablet
======================================== */

@media (max-width: 999px) {

    .vtx-legal-content {
        max-width: 760px;

        padding-top: 48px;
        padding-bottom: 48px;
    }


    .vtx-legal-content h1 {
        margin-bottom: 22px !important;

        font-size: 36px;
    }


    .vtx-legal-meta {
        margin-bottom: 24px !important;
    }


    .vtx-legal-content h2 {
        margin-top: 40px !important;
        margin-bottom: 18px !important;

        font-size: 24px;
    }


    .vtx-legal-content h3 {
        margin-top: 32px !important;
        margin-bottom: 14px !important;

        font-size: 20px;
    }


    .vtx-legal-content h4 {
        margin-top: 28px !important;
        margin-bottom: 12px !important;

        font-size: 18px;
    }


    .vtx-legal-content ul,
    .vtx-legal-content ol {
        padding-left: 1.75em !important;
    }


    .vtx-legal-content li + li {
        margin-top: 5px !important;
    }


    .vtx-legal-content p + ul,
    .vtx-legal-content p + ol {
        margin-top: 10px !important;
    }

}


/* ========================================
   10. Mobile
======================================== */

@media (max-width: 767px) {

    .vtx-legal-content {
        max-width: 100%;

        padding-top: 40px;
        padding-bottom: 40px;
    }


    .vtx-legal-content h1 {
        margin-bottom: 20px !important;

        font-size: 32px;
        line-height: 1.2;
    }


    .vtx-legal-meta {
        margin-bottom: 22px !important;

        font-size: 13px;
    }


    .vtx-legal-content h2 {
        margin-top: 36px !important;
        margin-bottom: 16px !important;

        font-size: 23px;
        line-height: 1.35;
    }


    .vtx-legal-content h3 {
        margin-top: 28px !important;
        margin-bottom: 12px !important;

        font-size: 19px;
        line-height: 1.4;
    }


    .vtx-legal-content h4 {
        margin-top: 24px !important;
        margin-bottom: 10px !important;

        font-size: 17px;
        line-height: 1.45;
    }


    .vtx-legal-content ul,
    .vtx-legal-content ol {
        margin-top: 10px !important;
        margin-bottom: 14px !important;

        padding-left: 1.5em !important;
    }


    .vtx-legal-content li + li {
        margin-top: 4px !important;
    }


    .vtx-legal-content p + ul,
    .vtx-legal-content p + ol {
        margin-top: 8px !important;
    }

}