@import url("/assets/fonts/estedad/v8.5/estedad.css");

:root {
  color-scheme: dark;
  --bg: #0b1420;
  --panel: #111f2d;
  --border: #294051;
  --text: #ecf4fa;
  --muted: #abc0ce;
  --accent: #65d5db;
}

* { box-sizing: border-box; }

html {
  direction: rtl;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 75% 10%, #162c3d, transparent 48%),
    var(--bg);
  color: var(--text);
  font-family: "Estedad", Tahoma, Arial, sans-serif;
  font-weight: 400;
  direction: rtl;
  text-align: right;
}

.legal-shell {
  width: min(100% - 32px, 900px);
  margin: 0 auto;
  padding: 28px 0 55px;
}

.legal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}

.legal-brand {
  color: #fff;
  font: 700 24px/1.5 "Estedad", sans-serif;
  text-decoration: none;
  letter-spacing: 1px;
}

.legal-back, .legal-nav a {
  color: var(--accent);
  text-decoration: none;
}

.legal-back:hover, .legal-nav a:hover {
  text-decoration: underline;
}

.legal-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: clamp(22px, 5vw, 48px);
}

.legal-kicker {
  color: var(--accent);
  font-size: 12px;
  letter-spacing: .08em;
}

h1 {
  margin: 12px 0 6px;
  font-size: clamp(25px, 4vw, 35px);
  font-weight: 700;
  line-height: 1.7;
  direction: rtl;
  text-align: right;
}

.legal-subtitle {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 13px;
  text-align: right;
  line-height: 2;
}

.legal-content {
  direction: rtl;
  text-align: right;
}

.legal-paragraph {
  direction: rtl;
  text-align: justify;
  text-align-last: right;
  line-height: 2.2;
  margin: 0 0 19px;
  font-size: 15px;
  font-weight: 400;
  word-break: normal;
  overflow-wrap: break-word;
}

.legal-version {
  border-top: 1px solid var(--border);
  padding-top: 18px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 12px;
}

.legal-nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  padding: 24px 4px;
  font-size: 13px;
}

@media (max-width: 600px) {
  .legal-shell { width: min(100% - 24px, 900px); }
  .legal-header { margin-bottom: 19px; }
  .legal-card { border-radius: 15px; }
  .legal-paragraph { font-size: 14px; line-height: 2.1; }
}
