.legal-page-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: calc(100vh - 80px);
    margin-top: 80px;
    position: relative;
    box-sizing: border-box;
}

.legal-card-panel {
    width: 100%;
    max-width: 900px; 
    margin: 40px auto 60px auto; 
    padding: 40px 60px;
    
    background-color: #1c140e; 
    
    border: 1px solid rgba(232, 212, 175, 0.2); 
    border-radius: 16px;                      
    
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.6),
        0 5px 15px rgba(0, 0, 0, 0.4);
    
    box-sizing: border-box;
}

.legal-title {
    color: var(--lighter);
    font-size: 2.2rem;
    text-align: center;
    text-shadow: 0 0 10px rgba(248, 238, 215, 0.3);
}
.legal-header {
    text-align: center;
    border-bottom: 1px solid rgba(232, 212, 175, 0.15);
    padding-bottom: 20px;
    margin-bottom: 30px;
}
.legal-sigil {
    display: block;
    margin: 0 auto 10px auto;
    color: var(--lighter);
    font-size: 1.5rem;
    text-shadow: 0 0 10px rgba(248, 238, 215, 0.5);
    line-height: 1;
}

.legal-subtitle {
    color: rgba(232, 212, 175, 0.5);
    text-align: center;
    font-style: italic;
}

.legal-text-body h2 {
    color: var(--lighter);
    border-left: 3px solid var(--accent);
    padding-left: 12px;
    margin-top: 30px;
}

.legal-text-body ul {
    list-style-position: inside;
}

.legal-text-body p, 
.legal-text-body li {
    color: var(--accent);
    line-height: 1.75;
    font-size: 0.95rem;
    opacity: 0.9;
}

.legal-header {
    border-bottom: 1px solid rgba(232, 212, 175, 0.15);
    padding-bottom: 20px;
    margin-bottom: 30px;
}
.legal-text-body a {
    font-family: "Almendra", serif;
    font-weight: 400;
    font-style: normal;
    color: var(--accent);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s ease;
}

.legal-text-body a:hover {
    color: var(--lighter);
    text-decoration: underline;
}

/* ==========================================================================
   MOBILE RULESHEETS LAYOUT ADAPTER
   ========================================================================== */
@media screen and (max-width: 768px) {

    .legal-page-wrapper {
        margin-top: 140px;
    }
    .legal-content-area {
        padding: 0px 15px  ;
    }

    .legal-card-panel {
        padding: 30px 20px  ;
    }

    .legal-title {
        font-size: 1.7rem;
    }
}