@import url("https://fonts.googleapis.com/css2?family=Alexandria:wght@300;400;500;600;700;800&display=swap");

:root {
  color-scheme: light;
  --paper: #fbf7ee;
  --paper-deep: #f1eadc;
  --ink: #28231c;
  --muted: #80786d;
  --line: rgba(91, 78, 60, 0.16);
  --accent: #b88455;
}

* { box-sizing: border-box; }

html { background: #f2ecdf; }

body {
  margin: 0;
  font-family: "Alexandria", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 6%, rgba(255, 255, 255, 0.78), transparent 26rem),
    linear-gradient(135deg, #f6f0e4 0%, #efe7d8 100%);
  min-height: 100vh;
  line-height: 1.65;
}

.legal-shell {
  max-width: 820px;
  margin: 0 auto;
  padding: 32px 28px 80px;
}

.legal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.legal-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.legal-brand-orb {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.6), transparent 60%),
    linear-gradient(135deg, #d9b58a, var(--accent));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 26px rgba(78, 66, 48, 0.1);
  font-size: 20px;
}

.legal-brand strong {
  font-family: "Alexandria", "Iowan Old Style", Georgia, serif;
  font-size: 17px;
  display: block;
}

.legal-brand span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.legal-nav {
  display: flex;
  gap: 16px;
  font-size: 14px;
}

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

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

h1 {
  font-family: "Alexandria", "Iowan Old Style", Georgia, serif;
  font-size: 32px;
  margin: 8px 0 8px;
}

.legal-subtitle {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 28px;
}

h2 {
  font-family: "Alexandria", "Iowan Old Style", Georgia, serif;
  font-size: 22px;
  margin: 32px 0 8px;
}

h3 {
  font-size: 16px;
  margin: 20px 0 6px;
}

p, li {
  font-size: 15px;
  color: #3a342a;
}

.legal-ar {
  direction: rtl;
  text-align: right;
  font-family: "Alexandria", "Segoe UI", system-ui, sans-serif;
  background: rgba(248, 240, 226, 0.6);
  border-right: 3px solid var(--accent);
  padding: 18px 22px;
  border-radius: 10px;
  margin: 18px 0;
}

.legal-ar h2, .legal-ar h3 { margin-top: 14px; }
.legal-ar p, .legal-ar li { font-size: 15.5px; }

a { color: var(--accent); }

.legal-footer {
  margin-top: 60px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.legal-footer a { color: var(--ink); text-decoration: none; }
.legal-footer a:hover { text-decoration: underline; }

@media (max-width: 600px) {
  .legal-shell { padding: 22px 18px 60px; }
  h1 { font-size: 26px; }
  .legal-topbar { flex-direction: column; gap: 12px; align-items: flex-start; }
}
