/* ============================================================
   policy.css — صفحات السياسات العامة (مستقلة عن حزمة التطبيق)
   ============================================================ */

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

.pol-body {
    font-family: 'Tajawal', system-ui, -apple-system, sans-serif;
    background: #0f172a;
    color: #e2e8f0;
    line-height: 1.9;
    padding: 0 0 40px;
    -webkit-text-size-adjust: 100%;
}

.pol-wrap { max-width: 820px; margin: 0 auto; padding: 0 16px; }

/* ── الرأس ── */
.pol-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; padding: 18px 0; flex-wrap: wrap;
}
.pol-logo {
    display: flex; align-items: center; gap: 10px;
    color: #fff; text-decoration: none; font-weight: 900; font-size: 18px;
}
.pol-logo img { width: 38px; height: 38px; }
.pol-back {
    color: #93c5fd; text-decoration: none; font-size: 14px; font-weight: 700;
    border: 1px solid rgba(147, 197, 253, .35); border-radius: 10px; padding: 7px 14px;
    transition: background .15s;
}
.pol-back:hover { background: rgba(147, 197, 253, .12); }

/* ── تبويبات السياسات ── */
.pol-nav {
    display: flex; gap: 8px; flex-wrap: wrap;
    padding: 12px 0 18px; border-bottom: 1px solid rgba(148, 163, 184, .2);
}
.pol-nav a {
    color: #cbd5e1; text-decoration: none; font-size: 14px; font-weight: 700;
    padding: 8px 14px; border-radius: 999px;
    background: rgba(148, 163, 184, .1); transition: background .15s, color .15s;
}
.pol-nav a:hover { background: rgba(148, 163, 184, .2); }
.pol-nav a.active { background: #2563eb; color: #fff; }

/* ── المستند ── */
.pol-doc { padding: 26px 0; }
.pol-doc h1 { font-size: 26px; font-weight: 900; color: #fff; margin-bottom: 6px; }
.pol-updated { font-size: 13px; color: #94a3b8; margin-bottom: 22px; }

.pol-doc h2 {
    font-size: 19px; font-weight: 800; color: #fff;
    margin: 30px 0 10px; padding-bottom: 6px;
    border-bottom: 1px solid rgba(148, 163, 184, .2);
}
.pol-doc h3 { font-size: 16px; font-weight: 800; color: #e2e8f0; margin: 18px 0 8px; }
.pol-doc p  { margin-bottom: 12px; font-size: 15px; }

.pol-doc ul, .pol-doc ol { margin: 0 22px 14px 0; padding: 0; }
.pol-doc li { margin-bottom: 8px; font-size: 15px; }

.pol-doc b { color: #fff; font-weight: 800; }
.pol-doc a { color: #60a5fa; text-decoration: none; }
.pol-doc a:hover { text-decoration: underline; }

/* جداول داخل المستندات */
.pol-table {
    width: 100%; border-collapse: collapse; margin: 14px 0 18px;
    font-size: 14px; display: block; overflow-x: auto; white-space: nowrap;
}
.pol-table thead th {
    background: rgba(148, 163, 184, .12); color: #fff;
    font-weight: 800; font-size: 13.5px;
    padding: 10px 12px; text-align: right;
    border-bottom: 1px solid rgba(148, 163, 184, .25);
}
.pol-table td {
    padding: 10px 12px; border-bottom: 1px solid rgba(148, 163, 184, .14);
    white-space: normal;
}
.pol-table tbody tr:last-child td { border-bottom: 0; }

.pol-note {
    background: rgba(37, 99, 235, .12);
    border-right: 3px solid #3b82f6;
    border-radius: 8px; padding: 12px 14px; font-size: 14px; color: #dbeafe;
}

/* ── التذييل ── */
.pol-foot {
    margin-top: 34px; padding-top: 18px;
    border-top: 1px solid rgba(148, 163, 184, .2);
    font-size: 13px; color: #94a3b8; text-align: center;
}
.pol-foot a { color: #60a5fa; text-decoration: none; }

/* ── عند العرض داخل مودال التطبيق ── */
.pol-embed { color: #e2e8f0; line-height: 1.9; }
.pol-embed h2 {
    font-size: 17px; font-weight: 800; color: #fff;
    margin: 22px 0 8px; padding-bottom: 5px;
    border-bottom: 1px solid rgba(148, 163, 184, .2);
}
.pol-embed h3 { font-size: 15px; font-weight: 800; margin: 14px 0 6px; }
.pol-embed p, .pol-embed li { font-size: 14px; }
.pol-embed ul, .pol-embed ol { margin: 0 20px 12px 0; }
.pol-embed li { margin-bottom: 7px; }
.pol-embed a { color: #60a5fa; text-decoration: none; }
.pol-embed b { color: #fff; }
.pol-embed .pol-note {
    background: rgba(37, 99, 235, .12); border-right: 3px solid #3b82f6;
    border-radius: 8px; padding: 10px 12px; font-size: 13px;
}

@media (max-width: 600px) {
    .pol-doc h1 { font-size: 22px; }
    .pol-doc h2 { font-size: 17px; }
}

/* ══════════════════════════════════════════════════════
   نموذج تقديم طلب الحذف (?p=request)
   ══════════════════════════════════════════════════════ */
.rq-tabs {
    display: flex; gap: 8px; margin: 20px 0 18px;
    background: rgba(148, 163, 184, .1);
    padding: 5px; border-radius: 12px;
}
.rq-tab {
    flex: 1; padding: 10px 12px; border: 0; border-radius: 9px;
    background: transparent; color: #cbd5e1; cursor: pointer;
    font-family: inherit; font-size: 14px; font-weight: 800;
    transition: background .15s, color .15s;
}
.rq-tab:hover  { color: #fff; }
.rq-tab.active { background: #2563eb; color: #fff; }

.rq-form { margin-bottom: 8px; }
.rq-label {
    display: block; margin: 14px 0 6px;
    font-size: 13.5px; font-weight: 800; color: #e2e8f0;
}
.rq-input {
    width: 100%; padding: 11px 13px;
    background: rgba(15, 23, 42, .6);
    border: 1px solid rgba(148, 163, 184, .28);
    border-radius: 10px; color: #f1f5f9;
    font-family: inherit; font-size: 14.5px; line-height: 1.6;
    transition: border-color .15s, box-shadow .15s;
}
.rq-input:focus {
    outline: none; border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .18);
}
.rq-input::placeholder { color: #64748b; }
textarea.rq-input { resize: vertical; min-height: 74px; }
select.rq-input { cursor: pointer; }
select.rq-input option { background: #0f172a; color: #f1f5f9; }

.rq-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.rq-btn {
    flex: 1; min-width: 160px; padding: 12px 16px;
    border: 0; border-radius: 11px; cursor: pointer;
    font-family: inherit; font-size: 14.5px; font-weight: 800;
    transition: filter .15s, transform .12s, background .15s;
}
.rq-btn:hover:not(:disabled)  { filter: brightness(1.09); }
.rq-btn:active:not(:disabled) { transform: scale(.98); }
.rq-btn:disabled { opacity: .6; cursor: not-allowed; }
.rq-btn-danger  { background: #dc2626; color: #fff; }
.rq-btn-primary { background: #2563eb; color: #fff; }
.rq-btn-ghost {
    background: transparent; color: #cbd5e1;
    border: 1px solid rgba(148, 163, 184, .32);
}
.rq-btn-ghost:hover:not(:disabled) { background: rgba(148, 163, 184, .12); }

.rq-result {
    margin-top: 16px; padding: 13px 15px;
    border-radius: 11px; font-size: 14px; font-weight: 700; line-height: 1.8;
}
.rq-result.ok {
    background: rgba(34, 197, 94, .12);
    border: 1px solid rgba(34, 197, 94, .35); color: #bbf7d0;
}
.rq-result.err {
    background: rgba(239, 68, 68, .12);
    border: 1px solid rgba(239, 68, 68, .35); color: #fecaca;
}
.rq-result.hidden, .rq-form.hidden { display: none; }

@media (max-width: 480px) {
    .rq-btn { min-width: 100%; }
}

/* ══════════════════════════════════════════════════════
   أرشيف أسماء الدردشات (archive.php)
   ══════════════════════════════════════════════════════ */
.arc-crumb { font-size: 13px; color: #94a3b8; margin-bottom: 14px; }
.arc-crumb a { color: #60a5fa; text-decoration: none; }
.arc-crumb a:hover { text-decoration: underline; }

.arc-cta {
    display: inline-flex; align-items: center; gap: 8px;
    margin: 22px 0 8px; padding: 13px 22px;
    background: #2563eb; color: #fff; text-decoration: none;
    border-radius: 12px; font-weight: 800; font-size: 15px;
    transition: filter .15s, transform .12s;
}
.arc-cta:hover { filter: brightness(1.08); }
.arc-cta:active { transform: scale(.98); }

.arc-more-title {
    font-size: 17px; font-weight: 800; color: #fff;
    margin: 34px 0 12px; padding-top: 18px;
    border-top: 1px solid rgba(148, 163, 184, .2);
}

.arc-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px; margin-top: 8px;
}
.arc-grid-small { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }

.arc-card {
    display: flex; flex-direction: column; gap: 6px;
    background: rgba(148, 163, 184, .08);
    border: 1px solid rgba(148, 163, 184, .18);
    border-radius: 12px; padding: 14px 16px;
    text-decoration: none; transition: background .15s, border-color .15s;
}
.arc-card:hover { background: rgba(148, 163, 184, .16); border-color: rgba(96, 165, 250, .4); }
.arc-card-title { font-size: 15px; font-weight: 800; color: #fff; }
.arc-card-desc { font-size: 12.5px; color: #94a3b8; line-height: 1.6; }

@media (max-width: 480px) {
    .arc-grid, .arc-grid-small { grid-template-columns: 1fr 1fr; }
}
