/* Styles for the plain text pages (privacy policy, support, account deletion).
   Self-contained on purpose: these pages must render even if the template's
   carousel/animation scripts fail, because the app stores link to them. */

:root {
    --gold: #c19033;
    --ink: #2c3e50;
    --body: #555f6a;
    --line: #e7e9ec;
    --bg: #f5f7fb;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--body);
    font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.75;
}

a { color: var(--gold); }
a:hover { color: #a97b26; }

.page-head {
    background: #fff;
    border-bottom: 1px solid var(--line);
}

.page-head .inner {
    max-width: 860px;
    margin: 0 auto;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.page-head img { height: 40px; width: auto; }

.page-head nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 18px;
}

.page-head nav a {
    font-size: 14px;
    text-decoration: none;
    color: var(--ink);
}

.page-head nav a:hover { color: var(--gold); }

main {
    max-width: 860px;
    margin: 32px auto 48px;
    padding: 40px 48px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
    overflow-wrap: break-word;
}

h1 {
    font-family: Raleway, "Open Sans", Arial, sans-serif;
    font-size: 32px;
    line-height: 1.25;
    color: var(--ink);
    margin: 0 0 6px;
}

h2 {
    font-family: Raleway, "Open Sans", Arial, sans-serif;
    font-size: 21px;
    color: var(--ink);
    margin: 38px 0 10px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

h2:first-of-type { border-top: 0; padding-top: 0; }

h3 {
    font-size: 17px;
    color: var(--ink);
    margin: 24px 0 6px;
}

.updated {
    color: #8a929b;
    font-size: 14px;
    margin: 0 0 8px;
}

.lead { font-size: 17px; }

ul { padding-inline-start: 22px; }
li { margin-bottom: 8px; }

table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 15px;
}

th, td {
    border: 1px solid var(--line);
    padding: 10px 12px;
    text-align: start;
    vertical-align: top;
}

th { background: #fbfaf7; color: var(--ink); font-weight: 600; }

.note {
    background: #fbfaf7;
    border-inline-start: 3px solid var(--gold);
    padding: 14px 18px;
    margin: 20px 0;
    border-radius: 0 4px 4px 0;
}

.lang-switch {
    font-size: 14px;
    text-decoration: none;
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 6px 14px;
    color: var(--ink);
}

.lang-switch:hover { border-color: var(--gold); color: var(--gold); }

.page-foot {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 24px 48px;
    text-align: center;
    font-size: 14px;
    color: #8a929b;
}

.page-foot a { text-decoration: none; }

.steps { counter-reset: step; list-style: none; padding: 0; }

.steps li {
    counter-increment: step;
    position: relative;
    padding-inline-start: 38px;
    margin-bottom: 14px;
}

.steps li::before {
    content: counter(step);
    position: absolute;
    inset-inline-start: 0;
    top: 2px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--gold);
    color: #fff;
    font-size: 14px;
    line-height: 26px;
    text-align: center;
}

html[dir="rtl"] body {
    font-family: "Segoe UI", Tahoma, "Noto Naskh Arabic", Arial, sans-serif;
}

@media (max-width: 640px) {
    .page-head .inner { padding: 14px 16px; }
    main { margin: 16px 12px 32px; padding: 26px 22px; border-radius: 4px; }
    h1 { font-size: 26px; }
    h2 { font-size: 19px; }
    /* A phone is narrower than three columns of prose: let the table scroll on its
       own rather than widening the page. */
    table { display: block; width: 100%; overflow-x: auto; font-size: 14px; }
    th, td { padding: 8px 10px; }
}
