/* Shared by privacy.html and terms.html. Colours mirror the mobile app's
   theme (sportapp-mobile/src/theme.ts) so the pages feel like part
   of the app when opened from it. */
:root {
    --primary: #1F4D3A;
    --primary-soft: #F6F9E3;
    --ink: #1F4D3A;
    --text: #1F2E27;
    --text-muted: #5F6B65;
    --background: #F1F5F2;
    --surface: #FFFFFF;
    --surface-muted: #EAEFEB;
    --border: #DDE4DF;
    --warning: #8A6116;
    --warning-soft: #FFF1E1;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Arabic", Tahoma, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    -webkit-text-size-adjust: 100%;
}

.page { max-width: 760px; margin: 0 auto; padding: 16px 16px 48px; }

.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 4px 20px; }
.brand { font-size: 18px; font-weight: 800; color: var(--primary); text-decoration: none; }

/* Language switch — same segmented look as the app's. */
.lang { display: flex; background: var(--surface-muted); border-radius: 999px; padding: 4px; }
.lang button {
    border: 0;
    background: transparent;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    min-height: 40px;
    padding: 0 18px;
    border-radius: 999px;
    cursor: pointer;
}
.lang button[aria-pressed="true"] {
    background: var(--surface);
    color: var(--primary);
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(11, 37, 69, 0.08);
}
.lang button:focus-visible, a:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.card {
    background: var(--surface);
    border-radius: 16px;
    padding: 24px 20px;
    box-shadow: 0 4px 12px rgba(11, 37, 69, 0.08);
}

h1 { font-size: 26px; line-height: 1.3; font-weight: 800; color: var(--ink); margin: 0 0 4px; }
.updated { color: var(--text-muted); font-size: 14px; margin: 0 0 20px; }
h2 { font-size: 18px; line-height: 1.4; font-weight: 700; color: var(--ink); margin: 28px 0 8px; }
p { margin: 0 0 12px; }
ul { margin: 0 0 12px; padding-inline-start: 22px; }
li { margin-bottom: 6px; }
a { color: var(--primary); font-weight: 600; }

.summary { background: var(--primary-soft); border-radius: 12px; padding: 14px 16px; margin-bottom: 8px; }
.summary p:last-child { margin-bottom: 0; }

/* Details the business still has to fill in — impossible to miss on purpose. */
.todo { background: var(--warning-soft); color: var(--warning); font-weight: 700; padding: 1px 6px; border-radius: 6px; }

.footer { text-align: center; color: var(--text-muted); font-size: 14px; margin-top: 24px; }

/* Only the chosen language is shown; legal.js sets data-lang on <html>. */
html[data-lang="ar"] [lang="en"], html[data-lang="en"] [lang="ar"] { display: none; }
