:root {
    --primary-yellow: #FFCC00;
    --brand-gold: #FFB700;
    --dark-amber: #E6B800;
    --text-dark: #111111;
    --text-light: #4A4A4A;
    --bg-light: #F8F9FA;
    --white: #FFFFFF;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.8;
}

.container {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 24px;
}

header.legal-header {
    text-align: center;
    padding: 40px 20px 60px;
    background: linear-gradient(135deg, #FFF0B3 0%, var(--primary-yellow) 50%, var(--brand-gold) 100%);
    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 40px;
    box-shadow: 0 15px 35px rgba(230, 184, 0, 0.15);
    position: relative;
    overflow: hidden;
}

header.legal-header::before {
    content: '99';
    position: absolute;
    top: -40px;
    right: -30px;
    font-size: 9rem;
    font-weight: 800;
    line-height: 0.8;
    color: var(--text-dark);
    opacity: 0.05;
    pointer-events: none;
    z-index: 0;
}

header.legal-header .container {
    position: relative;
    z-index: 1;
}

header.legal-header img.app-logo {
    width: 84px;
    height: 84px;
    object-fit: cover;
    border-radius: 22px;
    border: 3px solid var(--white);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 18px;
}

header.legal-header h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-dark);
}

header.legal-header a.back-link {
    display: inline-block;
    margin-top: 18px;
    color: var(--text-dark);
    font-weight: 700;
    text-decoration: none;
    opacity: 0.75;
}

header.legal-header a.back-link:hover {
    opacity: 1;
}

main.legal-content {
    padding: 50px 0 80px;
}

main.legal-content .card {
    background: var(--white);
    border-radius: 24px;
    padding: 40px 36px;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(0,0,0,0.03);
}

main.legal-content p {
    color: var(--text-light);
    font-size: 1.02rem;
    margin-bottom: 18px;
}

main.legal-content p:last-child {
    margin-bottom: 0;
}

main.legal-content b {
    color: var(--text-dark);
}

main.legal-content h2 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-dark);
    margin: 30px 0 12px;
}

main.legal-content h2:first-child {
    margin-top: 0;
}

/* خاص بصفحة حذف الحساب — مقصور عليها حتى لا يتأثر باقي الصفحات */
.delete-page ol,
.delete-page ul {
    color: var(--text-light);
    font-size: 1.02rem;
    margin-bottom: 18px;
    padding-right: 22px;
}

.delete-page li {
    margin-bottom: 8px;
}

.delete-page .notice {
    background: #FFF8E1;
    border: 1px solid rgba(230, 184, 0, .35);
    border-right: 5px solid var(--brand-gold);
    border-radius: 14px;
    padding: 20px 24px;
    margin: 24px 0;
}

.delete-page .notice p:last-child {
    margin-bottom: 0;
}

.delete-page .steps {
    background: var(--bg-light);
    border-radius: 16px;
    padding: 22px 26px;
    margin-bottom: 8px;
}

.delete-page .steps ol:last-child,
.delete-page .steps p:last-child {
    margin-bottom: 0;
}

.delete-page a {
    color: #12448C;
    font-weight: 700;
}

footer.legal-footer {
    background-color: var(--text-dark);
    color: var(--white);
    text-align: center;
    padding: 40px 20px;
    border-top-left-radius: 40px;
    border-top-right-radius: 40px;
}

footer.legal-footer p {
    font-size: 0.9rem;
    opacity: 0.8;
}

footer.legal-footer a {
    color: var(--primary-yellow);
    text-decoration: none;
    font-weight: 700;
}
