/* Baytna's public pages: the privacy policy, the terms, and the account
   deletion request form.

   One stylesheet, no build step, no framework. These pages exist so a Play
   reviewer and a worried user can read them — that is the whole brief, and
   anything that could fail to load is a liability rather than a feature. */

:root {
  --ink: #1b1a22;
  --ink-soft: #26242e;
  --ivory: #f6f1e8;
  --pearl: #ffffff;
  --champagne: #c9a96a;
  --champagne-light: #e8d9b5;
  --graphite: #46443e;
  --mist: #8e8b84;
  --danger: #a85454;

  --bg: var(--ivory);
  --surface: var(--pearl);
  --text: var(--graphite);
  --heading: var(--ink);
  --muted: var(--mist);
  --accent: var(--champagne);
  --hairline: rgba(70, 68, 62, 0.14);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: var(--ink);
    --surface: var(--ink-soft);
    --text: #d9d4c9;
    --heading: var(--ivory);
    --muted: #9d998f;
    --accent: var(--champagne-light);
    --hairline: rgba(232, 217, 181, 0.16);
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Arabic sets its own face and a slightly looser line, the same way the app
   does — Tajawal at Manrope's line height reads cramped. */
[dir="rtl"] body,
body[dir="rtl"] {
  font-family: "Tajawal", -apple-system, "Segoe UI", Tahoma, Arial, sans-serif;
  line-height: 1.85;
}

.wrap {
  max-width: 46rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

header.masthead {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 2rem;
}

.mark {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.1rem;
  flex: none;
}

.masthead h1 { font-size: 1.15rem; margin: 0; }
.masthead .sub { color: var(--muted); font-size: 0.9rem; }

h1, h2, h3 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  color: var(--heading);
  line-height: 1.25;
}

h1.title { font-size: 2rem; margin: 0 0 0.25rem; }
h2 { font-size: 1.3rem; margin: 2.5rem 0 0.75rem; }
h3 { font-size: 1.05rem; margin: 1.75rem 0 0.5rem; }

.updated { color: var(--muted); font-size: 0.9rem; margin: 0 0 2rem; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }

.card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 20px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

ul, ol { padding-inline-start: 1.25rem; }
li { margin-bottom: 0.4rem; }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.95rem;
}
th, td {
  text-align: start;
  padding: 0.6rem 0.5rem;
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
}
th { color: var(--heading); font-weight: 600; }

.table-scroll { overflow-x: auto; }

/* Forms */
label { display: block; margin: 1.1rem 0 0.35rem; color: var(--heading); font-weight: 600; font-size: 0.95rem; }
.hint { color: var(--muted); font-size: 0.85rem; font-weight: 400; margin-top: 0.15rem; }

input, textarea, select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: 14px;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(201, 169, 106, 0.18);
}
textarea { min-height: 8rem; resize: vertical; }

button {
  margin-top: 1.75rem;
  width: 100%;
  padding: 0.9rem 1rem;
  font: inherit;
  font-weight: 700;
  color: var(--ink);
  background: var(--accent);
  border: none;
  border-radius: 999px;
  cursor: pointer;
}
button:hover { filter: brightness(1.05); }

/* The honeypot: a real person never sees it, a bot fills it in. */
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.lang-toggle {
  margin-inline-start: auto;
  display: flex;
  gap: 0.25rem;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 0.2rem;
}
.lang-toggle button {
  margin: 0;
  width: auto;
  padding: 0.35rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
}
.lang-toggle button[aria-pressed="true"] { background: var(--accent); color: var(--ink); }

footer {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--hairline);
  color: var(--muted);
  font-size: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.note {
  border-inline-start: 3px solid var(--accent);
  padding-inline-start: 1rem;
  color: var(--muted);
}
