/* ==========================================================================
   SoftPro — document pages
   support.html, privacy-policy.html, terms-of-service.html, messaging-policy.html

   One file instead of four copies of the same inline <style> block. Same
   palette and type as the homepage (home.css), laid out the way legal and
   support pages usually are: a single readable column on white, no card.
   ========================================================================== */

:root {
    --brand:      #0B7285;   /* logo turquoise, darkened: 5.59:1 on white */
    --brand-soft: #E5F2F5;
    --ink:        #0B1B26;
    --body:       #3D4E5A;
    --muted:      #5A6B78;
    --line:       #E2E8ED;
    --line-2:     #CBD5DD;
    --alt:        #F6F8FA;
}

* { box-sizing: border-box; }

html { color-scheme: light; }

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--body);
    background: #FFFFFF;
    -webkit-font-smoothing: antialiased;
}
[lang="ar"], [dir="rtl"] { font-family: 'Cairo', system-ui, sans-serif; }

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

/* ---- top bar ---------------------------------------------------------- */
.doc-top {
    border-bottom: 1px solid var(--line);
    background: #FFFFFF;
}
.doc-top-inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.doc-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 17px;
    color: var(--ink);
}
.doc-brand:hover { text-decoration: none; }
.doc-brand img { width: 28px; height: 28px; display: block; }
.doc-back {
    font-size: 14px;
    font-weight: 600;
    color: var(--body);
    padding: 8px 14px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--line-2);
    border-radius: 8px;
}
.doc-back:hover { background: var(--alt); text-decoration: none; color: var(--ink); }

/* ---- the column ------------------------------------------------------- */
.wrap {
    max-width: 800px;
    margin: 0 auto;
    padding: 56px 20px 40px;
}

main { display: block; }

h1 {
    margin: 0 0 8px;
    font-size: clamp(30px, 4vw, 38px);
    line-height: 1.15;
    letter-spacing: -.02em;
    font-weight: 700;
    color: var(--ink);
}
.sub { color: var(--muted); margin: 0 0 32px; font-size: 15px; }
.sub strong { font-weight: 600; color: var(--body); }

h2 {
    margin: 40px 0 12px;
    font-size: 20px;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: -.01em;
    color: var(--ink);
}
h3 {
    margin: 28px 0 10px;
    font-size: 17px;
    line-height: 1.35;
    font-weight: 700;
    color: var(--ink);
    scroll-margin-top: 16px;   /* the store links land on these */
}
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { letter-spacing: 0; line-height: 1.4; }

/* A plain summary table: hairlines, no stripes. */
.doc-table { width: 100%; border-collapse: collapse; margin: 16px 0 8px; font-size: 15px; }
.doc-table th, .doc-table td { padding: 10px 12px; text-align: start; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc-table th { font-weight: 600; color: var(--ink); background: var(--alt); border-bottom-color: var(--line-2); }
.doc-table td:first-child { font-weight: 600; color: var(--ink); white-space: nowrap; }

p, li { color: var(--body); line-height: 1.7; }
p { margin: 0 0 14px; }
strong { color: var(--ink); font-weight: 600; }
ul { margin: 8px 0 14px; padding-inline-start: 22px; }
li { margin-bottom: 6px; }

.note {
    border-inline-start: 3px solid var(--brand);
    padding: 14px 16px;
    margin: 20px 0;
    background: var(--brand-soft);
    border-radius: 0;
}
.note, .note p { color: var(--ink); }

code {
    background: var(--alt);
    border: 1px solid var(--line);
    padding: 1px 6px;
    border-radius: 6px;
    font-size: .92em;
}

/* messaging-policy boxes */
.grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 16px 0; }
.box {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 18px 20px;
    background: #FFFFFF;
}
.box > :last-child { margin-bottom: 0; }
.box > :first-child { margin-top: 0; }

/* support.html contact rows */
.channels { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.channels li { margin: 0; }
.channels a, .channels .row {
    display: flex;
    gap: 12px;
    align-items: baseline;
    flex-wrap: wrap;
    padding: 14px 16px;
    min-height: 48px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #FFFFFF;
    color: var(--ink);
}
.channels a:hover { border-color: var(--brand); text-decoration: none; }
.ch-label { min-width: 110px; color: var(--muted); font-size: 14px; }
.ch-value { font-weight: 600; word-break: break-word; }

.hr { border: 0; border-top: 1px solid var(--line); margin: 48px 0; }

/* ---- footer ----------------------------------------------------------- */
footer {
    margin-top: 56px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    align-items: center;
}
.links { display: flex; gap: 18px; flex-wrap: wrap; }
.links a { color: var(--body); }
.links a:hover { color: var(--brand); }
.small { font-size: 13px; color: var(--muted); }

@media (max-width: 560px) {
    .wrap { padding-top: 36px; }
    .ch-label { min-width: 0; width: 100%; }
}
