/* Shared stylesheet for static content pages (about, privacy, terms, support, delete-account) */

@font-face {
  font-family: 'Vazirmatn';
  src: url('/Vazirmatn.ttf') format('truetype');
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --accent: #1FA8E0;
  --accent-deep: #0B84B8;
  --accent-soft: #E8F6FD;
  --bg: #F5F7FA;
  --bg-2: #EEF2F6;
  --surface: #FFFFFF;
  --ink: #0F1A24;
  --ink-2: #334655;
  --muted: #6B7A89;
  --line: #E6ECF1;
  --success-bg: #E8F7EE;
  --success: #137A3D;
  --radius: 16px;
}

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

html, body {
  background-color: var(--bg);
  background-image: radial-gradient(circle, rgba(163, 175, 186, .35) 1px, transparent 1px);
  background-size: 24px 24px;
  background-position: 0 0;
  color: var(--ink-2);
  font-family: 'Vazirmatn', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.8;
  direction: rtl;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: 820px;
  padding: 60px 32px 40px;
}

h1 {
  font-size: 32px;
  color: var(--ink);
  margin-bottom: 32px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h2 {
  font-size: 19px;
  color: var(--ink);
  margin-bottom: 12px;
  font-weight: 600;
}

p {
  font-size: 15.5px;
  margin-bottom: 12px;
  color: var(--ink-2);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s;
}
a:hover { color: var(--accent-deep); }

ul {
  margin: 8px 24px 16px;
  padding: 0;
}
li {
  font-size: 15.5px;
  margin-bottom: 8px;
  color: var(--ink-2);
}

strong { color: var(--ink); font-weight: 600; }

.back {
  display: inline-block;
  margin-bottom: 32px;
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
}
.back:hover { color: var(--accent); text-decoration: none; }

.divider {
  border-top: 1px dashed var(--line);
  margin: 32px 0;
}

.cities {
  font-size: 15.5px;
  line-height: 2;
  color: var(--ink-2);
}

.updated {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 24px;
}

.subtitle {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 24px;
}

/* Form elements (support, delete-account) */
form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}
label {
  font-size: 14px;
  color: var(--ink-2);
  font-weight: 500;
}
input[type="text"],
input[type="email"],
textarea {
  font-family: inherit;
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  width: 100%;
  direction: rtl;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(31, 168, 224, 0.12);
}
textarea { min-height: 140px; resize: vertical; }

button[type="submit"],
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  font-family: inherit;
  border: none;
  background: var(--accent);
  color: white;
  cursor: pointer;
  box-shadow: 0 6px 16px -6px rgba(31,168,224,.6);
  transition: background 0.15s, transform 0.1s;
}
button[type="submit"]:hover,
.btn-primary:hover { background: var(--accent-deep); transform: translateY(-1px); }

.success {
  padding: 14px 16px;
  background: var(--success-bg);
  color: var(--success);
  border-radius: 12px;
  font-size: 14.5px;
  margin-top: 12px;
}

.email-link {
  display: inline-block;
  color: var(--accent);
  font-weight: 500;
}

.info-box {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin: 16px 0;
}

/* Footer (shared with desktop landing) */
.footer {
  width: 100%;
  display: flex;
  gap: 30px;
  align-items: center;
  direction: rtl;
  flex-wrap: wrap;
  justify-content: center;
  padding: 24px 32px 48px;
  margin-top: auto;
}
.footer a {
  font-size: 16px;
  color: var(--ink-2);
  transition: color 0.15s;
}
.footer a:hover { color: var(--accent); }

@media (max-width: 640px) {
  .container { padding: 40px 20px 32px; }
  h1 { font-size: 26px; margin-bottom: 24px; }
  h2 { font-size: 17px; }
}
