/* ==========================================================================
   Premium Design for Standard Pages (Legal Pages)
   ========================================================================== */


/* Ensure the page header (the actual page titles) are visible again */
body.page .page-header {
    display: block !important;
}

/* Background styling: Clean white background */
body.page {
    background: #ffffff;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 0;
}

/* Premium Content Container (The Glass Card) */
body.page main.site-main {
    max-width: 900px;
    margin: 80px auto;
    padding: 60px 80px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 1);
    border-radius: 40px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.05), inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    font-family: 'Roboto', sans-serif;
    color: #334155;
    line-height: 1.8;
    display: flex;
    flex-direction: column;
}

@media (max-width: 768px) {
    body.page main.site-main {
        margin: 40px 20px;
        padding: 40px 30px;
        border-radius: 30px;
    }
}

/* Flexbox Trick to reorder Meta Badge above Page Title */
body.page .page-content {
    display: contents; /* Flattens children into the flex container */
}

/* 1. The Pill Badge (Meta Info) goes on top */
body.page .tp-legal-meta {
    order: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid rgba(12, 35, 64, 0.15);
    border-radius: 50px;
    padding: 10px 24px;
    font-size: 0.85rem;
    color: #0c2340;
    margin: 0 auto 20px auto;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    text-align: center;
}
.tp-legal-meta::before {
    content: "🛡️"; /* Icon for the badge */
    margin-right: 8px;
    font-size: 1.2rem;
}

/* 2. The Main Page Title (e.g. Cookie Policy) goes second */
body.page .page-header {
    order: 2;
    text-align: center;
    margin-bottom: 40px;
}

body.page .page-header h1.entry-title {
    font-family: 'Oswald', sans-serif;
    font-size: 4rem;
    color: #1d4ed8; /* Vibrant blue matching the screenshot */
    text-transform: capitalize;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    letter-spacing: -1px;
}

/* 3. The Sections (Content) go third */
body.page .tp-legal-section {
    order: 3;
    background: transparent;
    border: none;
    padding: 0;
    margin-bottom: 40px;
    box-shadow: none;
}

body.page .tp-legal-section:hover {
    transform: none;
}
body.page .tp-legal-section::before {
    display: none;
}

/* Section Headings */
.tp-legal-section-header h2 {
    font-family: 'Oswald', sans-serif !important;
    margin-top: 0 !important;
    margin-bottom: 15px !important;
    font-size: 2rem !important;
    color: #000000 !important;
    font-weight: 900 !important;
}

.tp-legal-section-body p {
    color: #475569;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.tp-legal-section-body h3 {
    font-family: 'Roboto', sans-serif !important;
    font-weight: 900 !important;
    font-size: 1.4rem !important;
    color: #000000 !important;
    margin-top: 30px !important;
    margin-bottom: 15px !important;
}

/* Lists */
.tp-legal-list {
    list-style: none;
    padding-left: 0 !important;
    margin-bottom: 20px;
}

.tp-legal-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    color: #475569;
    font-size: 1.1rem;
}

.tp-legal-list li::before {
    content: '→';
    color: #3b82f6; /* Blue bullet */
    font-weight: bold;
    font-size: 1.2rem;
    position: absolute;
    left: 0;
    top: -2px;
}

/* Links */
body.page main.site-main a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px dashed #3b82f6;
    transition: all 0.2s ease;
}

body.page main.site-main a:hover {
    color: #1d4ed8;
    border-bottom-style: solid;
}

/* Unformatted text fallback */
body.page .page-content > h2 {
    order: 3;
    font-family: 'Oswald', sans-serif !important;
    font-size: 2rem !important;
    color: #000000 !important;
    font-weight: 900 !important;
    margin-bottom: 15px;
}
body.page .page-content > h3 {
    order: 3;
    font-family: 'Roboto', sans-serif !important;
    font-size: 1.4rem !important;
    color: #000000 !important;
    font-weight: 900 !important;
    margin-bottom: 15px;
}
body.page .page-content > p {
    order: 3;
    font-size: 1.1rem;
    color: #475569;
    margin-bottom: 20px;
}
