@import "../variables.css";

/* ═══════════════════════════════════════
   PREMIUM LEGAL PAGES STYLING
   ═══════════════════════════════════════ */

.mypwa-legal {
    padding: 0 0 60px;
    background: var(--bg-page);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--font-cairo);
}

.mypwa-legal__header {
    background: rgba(var(--primary-rgb), 0.05);
    padding: 30px 20px 40px;
    border-bottom: 1px solid rgba(var(--primary-rgb), 0.1);
    position: relative;
    overflow: hidden;
}

/* Subtle background accent */
.mypwa-legal__header::after {
    content: "";
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: var(--primary-glow);
    filter: blur(80px);
    border-radius: 50%;
    z-index: 1;
}

.mypwa-legal__back {
    position: relative;
    z-index: 2;
    background: rgba(var(--primary-rgb), 0.15);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 12px;
    font-family: var(--font-cairo);
    font-weight: 800;
    font-size: 0.9rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.mypwa-legal__title {
    position: relative;
    z-index: 2;
    color: #ffffff; /* Default is Light for Dark Theme */
    font-size: 2rem;
    font-weight: 900;
    margin: 0 0 8px;
    letter-spacing: -0.5px;
    font-family: var(--font-cairo);
}

[data-theme="light"] .mypwa-legal__title {
    color: #1c1c1e;
}

.mypwa-legal__updated {
    position: relative;
    z-index: 2;
    color: #a1a1aa;
    font-size: 0.85rem;
    font-weight: 700;
}

[data-theme="light"] .mypwa-legal__updated {
    color: #8e8e93;
}

.mypwa-legal__content {
    padding: 40px 24px;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.legal-content-wrapper {
    color: #cbd5e0; /* Default is Light for Dark Theme */
    line-height: 1.9;
    font-size: 1.05rem;
    text-align: justify;
    font-family: var(--font-cairo);
}

[data-theme="light"] .legal-content-wrapper {
    color: #3a3a3c;
}

.legal-content-wrapper h2 {
    color: var(--primary);
    font-size: 1.35rem;
    font-weight: 800;
    margin: 40px 0 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-cairo);
}

.legal-content-wrapper h2::before {
    content: "";
    width: 5px;
    height: 24px;
    background: var(--primary);
    border-radius: 10px;
}

.legal-content-wrapper p {
    margin-bottom: 22px;
}

.legal-content-wrapper ul {
    margin-bottom: 25px;
    padding-right: 25px;
    list-style: none;
}

.legal-content-wrapper li {
    margin-bottom: 15px;
    position: relative;
}

.legal-content-wrapper li::before {
    content: "\f058"; /* Check-circle icon */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--primary);
    position: absolute;
    right: -28px;
    font-size: 1rem;
    top: 2px;
}

.legal-content-wrapper strong {
    font-weight: 800;
    color: #ffffff;
}

[data-theme="light"] .legal-content-wrapper strong {
    color: #1c1c1e;
}

.legal-content-wrapper a {
    color: var(--primary);
    text-decoration: underline;
    font-weight: 700;
}
