/* ==========================================================================
   ACADEMY 2.O — LEGAL & COMPLIANCE STYLESHEET
   Privacy Policy, Terms of Service, Student Agreement & Action-Based Refund Policy
   A unit of Meeways 360° Creative Agency
   ========================================================================== */

/* Page Wrapper */
.dice-legal-page {
    background-color: #f8fafc;
    color: #1e293b;
    font-family: var(--dice-font-body, 'Plus Jakarta Sans', -apple-system, sans-serif);
    line-height: 1.7;
    min-height: 100vh;
    padding-bottom: 0 !important;
}

/* 1. Legal Hero Section */
.dice-legal-hero {
    background: linear-gradient(180deg, #0b1120 0%, #0f172a 100%);
    color: #ffffff;
    padding: 60px 0 50px;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.dice-legal-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(37, 99, 235, 0.22) 0%, rgba(255, 87, 34, 0.08) 50%, transparent 75%);
    filter: blur(60px);
    pointer-events: none;
}
.dice-legal-hero__inner {
    position: relative;
    z-index: 2;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}
.dice-legal-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 20px;
}
.dice-legal-breadcrumb a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s ease;
}
.dice-legal-breadcrumb a:hover {
    color: #ff5722;
}
.dice-legal-breadcrumb i {
    font-size: 10px;
    color: #64748b;
}
.dice-legal-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    padding: 5px 14px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #ffd23f;
    margin-bottom: 16px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.dice-legal-hero__title {
    font-family: var(--dice-font-heading, 'Poppins', sans-serif);
    font-size: 38px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.8px;
    color: #ffffff;
    margin-bottom: 14px;
    max-width: 860px;
}
.dice-legal-hero__desc {
    font-size: 16px;
    color: #cbd5e1;
    max-width: 800px;
    line-height: 1.6;
    margin-bottom: 28px;
}
.dice-legal-hero__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 13px;
    color: #94a3b8;
}
.dice-legal-hero__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}
.dice-legal-hero__meta-item i {
    color: #38bdf8;
    font-size: 14px;
}
.dice-legal-hero__meta-item strong {
    color: #ffffff;
}

/* Quick Summary Stat Bento */
.dice-legal-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 32px;
}
.dice-legal-stat-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    backdrop-filter: blur(12px);
}
.dice-legal-stat-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(37, 99, 235, 0.18);
    border: 1px solid rgba(37, 99, 235, 0.35);
    color: #60a5fa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.dice-legal-stat-card__icon--gold {
    background: rgba(245, 158, 11, 0.18);
    border-color: rgba(245, 158, 11, 0.35);
    color: #fbbf24;
}
.dice-legal-stat-card__icon--emerald {
    background: rgba(16, 185, 129, 0.18);
    border-color: rgba(16, 185, 129, 0.35);
    color: #34d399;
}
.dice-legal-stat-card__title {
    font-size: 13.5px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 2px;
}
.dice-legal-stat-card__sub {
    font-size: 12px;
    color: #94a3b8;
}

/* 2. Main Content Layout (Sidebar + Body) */
.dice-legal-container {
    max-width: 1180px;
    width: 100%;
    margin: 40px auto 30px;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    gap: 40px;
    align-items: start;
    box-sizing: border-box;
}

/* Sticky Sidebar Navigation */
.dice-legal-sidebar {
    position: sticky;
    top: 90px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
    min-width: 0;
    box-sizing: border-box;
}
.dice-legal-sidebar__heading {
    font-family: var(--dice-font-heading, 'Poppins', sans-serif);
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #64748b;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.dice-legal-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.dice-legal-nav__link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    text-decoration: none;
    transition: all 0.2s ease;
}
.dice-legal-nav__link:hover {
    background: #f1f5f9;
    color: #0f172a;
    transform: translateX(3px);
}
.dice-legal-nav__link.is-active {
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 750;
    border-left: 3px solid #1877f2;
}
.dice-legal-nav__num {
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    width: 20px;
}
.dice-legal-nav__link.is-active .dice-legal-nav__num {
    color: #1877f2;
}

/* Sidebar Grievance Card */
.dice-legal-help-card {
    margin-top: 24px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: 12px;
    padding: 18px;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
}
.dice-legal-help-card__title {
    font-size: 13px;
    font-weight: 750;
    color: #ffffff;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.dice-legal-help-card__text {
    font-size: 11.5px;
    color: #94a3b8;
    line-height: 1.5;
    margin-bottom: 12px;
}
.dice-legal-help-card__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 8px 12px;
    background: #10b981;
    color: #ffffff;
    font-size: 11.5px;
    font-weight: 750;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.2s ease;
}
.dice-legal-help-card__btn:hover {
    background: #059669;
}

/* 3. Main Legal Document Articles */
.dice-legal-article {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 44px 48px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
    min-width: 0;
    box-sizing: border-box;
    overflow-wrap: break-word;
    word-break: break-word;
}
.dice-legal-section {
    margin-bottom: 48px;
    scroll-margin-top: 110px;
}
.dice-legal-section:last-child {
    margin-bottom: 0;
}
.dice-legal-section__header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f1f5f9;
}
.dice-legal-section__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #1877f2;
    color: #ffffff;
    font-family: var(--dice-font-heading, 'Poppins', sans-serif);
    font-size: 13px;
    font-weight: 800;
    flex-shrink: 0;
}
.dice-legal-section__badge--gold {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}
.dice-legal-section__badge--danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}
.dice-legal-section__title {
    font-family: var(--dice-font-heading, 'Poppins', sans-serif);
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.4px;
    margin: 0;
}
.dice-legal-article p {
    font-size: 14.5px;
    color: #475569;
    margin-bottom: 16px;
    line-height: 1.75;
}
.dice-legal-article p strong {
    color: #0f172a;
    font-weight: 700;
}
.dice-legal-article h4 {
    font-family: var(--dice-font-heading, 'Poppins', sans-serif);
    font-size: 16px;
    font-weight: 750;
    color: #1e293b;
    margin: 24px 0 12px;
}
.dice-legal-article ul, .dice-legal-article ol {
    margin: 0 0 20px 24px;
    color: #475569;
    font-size: 14px;
}
.dice-legal-article li {
    margin-bottom: 10px;
    line-height: 1.65;
}
.dice-legal-article li strong {
    color: #0f172a;
}

/* Callout Highlight Blocks */
.dice-legal-callout {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #1877f2;
    border-radius: 10px;
    padding: 20px 22px;
    margin: 24px 0;
}
.dice-legal-callout--gold {
    background: #fffbeb;
    border-color: #fde68a;
    border-left-color: #f59e0b;
}
.dice-legal-callout--emerald {
    background: #ecfdf5;
    border-color: #a7f3d0;
    border-left-color: #10b981;
}
.dice-legal-callout--danger {
    background: #fef2f2;
    border-color: #fecaca;
    border-left-color: #ef4444;
}
.dice-legal-callout__title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--dice-font-heading, 'Poppins', sans-serif);
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 8px;
    color: #0f172a;
}
.dice-legal-callout--gold .dice-legal-callout__title {
    color: #92400e;
}
.dice-legal-callout--emerald .dice-legal-callout__title {
    color: #065f46;
}
.dice-legal-callout--danger .dice-legal-callout__title {
    color: #991b1b;
}
.dice-legal-callout p:last-child {
    margin-bottom: 0;
}

/* Luxury Condition Checklist Cards */
.dice-condition-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin: 20px 0 24px;
}
.dice-condition-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px 18px;
    display: flex;
    gap: 14px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
    transition: transform 0.2s ease, border-color 0.2s ease;
}
.dice-condition-card:hover {
    border-color: #cbd5e1;
    transform: translateY(-1px);
}
.dice-condition-card__icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #fef3c7;
    color: #d97706;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    margin-top: 2px;
}
.dice-condition-card__content h5 {
    font-family: var(--dice-font-heading, 'Poppins', sans-serif);
    font-size: 14px;
    font-weight: 750;
    color: #0f172a;
    margin-bottom: 4px;
}
.dice-condition-card__content p {
    font-size: 13px;
    color: #64748b;
    margin: 0;
    line-height: 1.55;
}

/* Institutional Comparison / Deduction Table */
.dice-legal-table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 22px 0;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    box-sizing: border-box;
}
.dice-legal-table {
    width: 100%;
    min-width: 520px;
    border-collapse: collapse;
    font-size: 13.5px;
    text-align: left;
    background: #ffffff;
}
.dice-legal-table th {
    background: #f8fafc;
    color: #0f172a;
    font-weight: 750;
    padding: 12px 16px;
    border-bottom: 1px solid #e2e8f0;
    font-family: var(--dice-font-heading, 'Poppins', sans-serif);
}
.dice-legal-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    color: #475569;
}
.dice-legal-table tr:last-child td {
    border-bottom: none;
}
.dice-legal-table td strong {
    color: #0f172a;
}
.dice-legal-table .is-deduct {
    color: #dc2626;
    font-weight: 700;
}

/* Contact / Grievance Box at End of Legal Page */
.dice-legal-footer-desk {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}
.dice-legal-contact-item {
    display: flex;
    gap: 12px;
}
.dice-legal-contact-item__icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #eff6ff;
    color: #1d4ed8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}
.dice-legal-contact-item__title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    margin-bottom: 2px;
}
.dice-legal-contact-item__val {
    font-size: 13.5px;
    font-weight: 600;
    color: #0f172a;
}
.dice-legal-contact-item__val a {
    color: #1877f2;
    text-decoration: none;
}
.dice-legal-contact-item__val a:hover {
    text-decoration: underline;
}

/* Responsive Media Queries */
@media (max-width: 991px) {
    .dice-legal-container {
        display: flex;
        flex-direction: column;
        gap: 28px;
        width: 100%;
        max-width: 100%;
        padding: 0 20px;
        margin: 28px auto 60px;
        box-sizing: border-box;
    }
    .dice-legal-sidebar {
        width: 100%;
        max-width: 100%;
        position: relative;
        top: 0;
        padding: 20px 18px;
        border-radius: 14px;
    }
    .dice-legal-nav {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 8px;
    }
    .dice-legal-nav__link {
        padding: 8px 12px;
        font-size: 12.5px;
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .dice-legal-stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .dice-legal-article {
        width: 100%;
        max-width: 100%;
        padding: 32px 24px;
    }
    .dice-legal-hero__title {
        font-size: 28px;
    }
}

@media (max-width: 640px) {
    .dice-legal-container {
        padding: 0 16px;
        margin: 20px auto 48px;
        gap: 20px;
    }
    .dice-legal-hero {
        padding: 36px 0 30px;
    }
    .dice-legal-hero__inner {
        padding: 0 16px;
    }
    .dice-legal-breadcrumb {
        font-size: 12px;
        gap: 6px;
        margin-bottom: 16px;
        flex-wrap: wrap;
    }
    .dice-legal-hero__badge {
        font-size: 10px;
        padding: 4px 10px;
        margin-bottom: 12px;
    }
    .dice-legal-hero__title {
        font-size: 22px;
        line-height: 1.3;
        letter-spacing: -0.4px;
        margin-bottom: 12px;
    }
    .dice-legal-hero__desc {
        font-size: 13.5px;
        line-height: 1.6;
        margin-bottom: 20px;
    }
    .dice-legal-hero__meta {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding-top: 14px;
        font-size: 12px;
    }
    .dice-legal-stats-grid {
        margin-top: 20px;
        gap: 10px;
    }
    .dice-legal-stat-card {
        padding: 12px 14px;
        gap: 12px;
        border-radius: 10px;
    }
    .dice-legal-stat-card__icon {
        width: 36px;
        height: 36px;
        font-size: 15px;
    }
    .dice-legal-stat-card__title {
        font-size: 13px;
    }
    .dice-legal-stat-card__sub {
        font-size: 11.5px;
    }
    .dice-legal-sidebar {
        padding: 16px 14px;
        border-radius: 12px;
    }
    .dice-legal-sidebar__heading {
        font-size: 13px;
        margin-bottom: 12px;
    }
    .dice-legal-nav {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    .dice-legal-nav__link {
        font-size: 12px;
        padding: 8px 10px;
    }
    .dice-legal-article {
        padding: 22px 16px;
        border-radius: 12px;
    }
    .dice-legal-section {
        margin-bottom: 36px;
        scroll-margin-top: 80px;
    }
    .dice-legal-section__header {
        gap: 10px;
        margin-bottom: 14px;
        padding-bottom: 10px;
    }
    .dice-legal-section__badge {
        width: 28px;
        height: 28px;
        font-size: 12px;
        border-radius: 6px;
    }
    .dice-legal-section__title {
        font-size: 17px;
        line-height: 1.35;
    }
    .dice-legal-article p,
    .dice-legal-article li {
        font-size: 13.5px;
        line-height: 1.65;
    }
    .dice-legal-article h4 {
        font-size: 15px;
        margin: 20px 0 10px;
    }
    .dice-legal-article ul,
    .dice-legal-article ol {
        margin: 0 0 16px 18px;
    }
    .dice-condition-card {
        padding: 14px 12px;
        gap: 10px;
    }
    .dice-condition-card__icon {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    .dice-condition-card__content h5 {
        font-size: 13px;
    }
    .dice-condition-card__content p {
        font-size: 12px;
    }
    .dice-legal-callout {
        padding: 14px 14px;
        margin: 18px 0;
        border-radius: 8px;
    }
    .dice-legal-callout__title {
        font-size: 14px;
    }
    .dice-legal-footer-desk {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 18px 14px;
        border-radius: 10px;
        margin-top: 28px;
    }
}

@media (max-width: 400px) {
    .dice-legal-container {
        padding: 0 12px;
    }
    .dice-legal-article {
        padding: 18px 12px;
    }
    .dice-legal-hero__title {
        font-size: 20px;
    }
    .dice-legal-section__title {
        font-size: 16px;
    }
}

/* 10. Footer Compact Spacing (Legal Pages) */
body.dice-legal-page {
    padding-bottom: 0 !important;
}

.dice-legal-page .dice-footer {
    padding-top: 36px !important;
    padding-bottom: 16px !important;
}

.dice-legal-page .dice-footer__grid {
    margin-bottom: 24px !important;
}

.dice-legal-page .dice-footer__bottom {
    padding-top: 14px !important;
}

