/* Shared look of the policy pages (privacy.html, terms.html, refund.html). */
:root {
    --bg: #FDFBF7;
    --card: #FFFFFF;
    --subtle: #F5EFEA;
    --text: #1A1A1A;
    --muted: #5C3D2E;
    --border: #E8E2D5;
    --accent: #8C5A3C;
    --gold: #C5A059;
    --on-accent: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
    :root {
        --bg: #12100E;
        --card: #1C1815;
        --subtle: #26211D;
        --text: #FDFBF7;
        --muted: #D4B2A7;
        --border: rgba(197, 160, 89, 0.2);
        --accent: #C5A059;
        --gold: #C5A059;
        --on-accent: #12100E;
    }
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
    font-family: 'Cairo', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.9;
    padding: 24px 16px 40px;
}
.wrap { width: 100%; max-width: 760px; margin: 0 auto; }

.brand { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; text-decoration: none; color: inherit; }
.brand img { width: 48px; height: 48px; border-radius: 13px; border: 1px solid var(--border); }
.brand strong { display: block; font-size: 19px; font-weight: 900; line-height: 1.3; }
.brand span { font-size: 12px; color: var(--muted); font-weight: 700; }

.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.tabs a {
    flex: 1 1 auto;
    text-align: center;
    padding: 9px 14px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}
.tabs a[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 24px 22px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.05);
}
h1 { font-size: 24px; font-weight: 900; line-height: 1.4; }
.updated { font-size: 12px; color: var(--muted); font-weight: 700; margin-top: 2px; }
.lead {
    margin: 16px 0 4px;
    padding: 12px 14px;
    border-radius: 14px;
    background: var(--subtle);
    border-right: 4px solid var(--gold);
    font-size: 14px;
    font-weight: 600;
}
h2 {
    font-size: 17px;
    font-weight: 900;
    margin: 24px 0 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}
h2 i { color: var(--accent); font-size: 15px; width: 18px; text-align: center; }
p, li { font-size: 14.5px; }
p + p { margin-top: 8px; }
ul { padding-right: 20px; margin-top: 6px; }
li { margin-bottom: 6px; }
li strong, p strong { font-weight: 800; }
a { color: var(--accent); font-weight: 700; }
/* Keeps "@cpj_4" reading left to right inside the Arabic text. */
.handle { direction: ltr; unicode-bidi: isolate; display: inline-block; }

.contact {
    margin-top: 26px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.btn {
    flex: 1 1 200px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}
.btn.primary { background: var(--accent); color: var(--on-accent); }
.btn.ghost { background: var(--subtle); color: var(--text); border: 1px solid var(--border); }

footer { text-align: center; font-size: 12px; color: var(--muted); margin-top: 22px; font-weight: 600; }
footer a { text-decoration: none; }
