/* صفحة الشروط والأحكام & الخصوصية والأمان — نفس خط الموقع ونفس نمط الزجاج */
@font-face { font-family: 'Handicrafts'; src: url('../fonts/Handicrafts-Black.woff2') format('woff2'); font-weight: 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Handicrafts'; src: url('../fonts/Handicrafts-Medium.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --bg: #07080d;
  --text-main: #eceff5;
  --text-soft: #a7afbd;
  --ico-bg: rgba(127, 140, 170, 0.14);
  --g-bg: rgba(255, 255, 255, 0.05);
  --g-border: rgba(255, 255, 255, 0.3);
  --g-line-a: rgba(255, 255, 255, 0.8);
  --g-line-b: rgba(255, 255, 255, 0.3);
  --g-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.5), inset 0 -1px 0 rgba(255, 255, 255, 0.1);
}
html[data-theme="light"] {
  --bg: #f3f5fa;
  --text-main: #141824;
  --text-soft: #4a5365;
  --ico-bg: rgba(20, 24, 36, 0.07);
  --g-bg: rgba(255, 255, 255, 0.35);
  --g-border: rgba(20, 24, 36, 0.14);
  --g-shadow: 0 8px 28px rgba(20, 24, 36, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.9), inset 0 -1px 0 rgba(255, 255, 255, 0.4);
  color-scheme: light;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { background: var(--bg); }
body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text-main);
  font-family: 'Handicrafts', 'Inter', system-ui, sans-serif;
  font-weight: 500;
  line-height: 1.7;
  font-size: 14px;
  direction: rtl;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding: calc(env(safe-area-inset-top, 0px) + 104px) 0 calc(env(safe-area-inset-bottom, 0px) + 36px);
}
h1, h2, h3 { font-family: 'Handicrafts', 'Inter', system-ui, sans-serif; font-weight: 900; }

.page { width: 82%; max-width: 480px; margin: 0 auto; }

.page-title {
  text-align: center;
  font-size: clamp(1rem, 4.4vw, 1.3rem);
  line-height: 1.5;
  margin-bottom: 26px;
}
.group-title {
  text-align: center;
  font-size: clamp(0.98rem, 4.2vw, 1.15rem);
  line-height: 1.5;
  margin-bottom: 12px;
}
section + section { margin-top: 30px; }
section { scroll-margin-top: 96px; }

.t-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  padding: 6px 16px;
  background: var(--g-bg);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  border: 1px solid var(--g-border);
  box-shadow: var(--g-shadow);
}
.t-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--g-line-a), transparent);
}
.t-card::after {
  content: ''; position: absolute; top: 0; left: 0; width: 1px; height: 100%; pointer-events: none;
  background: linear-gradient(180deg, var(--g-line-a), transparent, var(--g-line-b));
}

.t-section { position: relative; z-index: 1; padding: 14px 0; }
.t-section + .t-section { border-top: 1px solid var(--g-border); }

.t-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.t-ico {
  flex: 0 0 auto; width: 32px; height: 32px; display: grid; place-items: center;
  border-radius: 10px; background: var(--ico-bg); color: var(--text-main);
}
.t-ico svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.t-title { font-size: 0.98rem; line-height: 1.4; }

.t-list { list-style: none; }
.t-list li {
  position: relative;
  padding-inline-start: 14px;
  font-size: 0.78rem;
  line-height: 1.75;
  color: var(--text-soft);
}
.t-list li + li { margin-top: 4px; }
.t-list li::before { content: '-'; position: absolute; inset-inline-start: 0; top: 0; color: var(--text-soft); }

.back-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: min(230px, 70vw); height: 40px; margin: 30px auto 0;
  border-radius: 50px; text-decoration: none; color: var(--text-main);
  font-size: 0.85rem; font-family: 'Handicrafts', 'Inter', system-ui, sans-serif; font-weight: 900;
  background: var(--g-bg); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
  border: 1px solid var(--g-border); box-shadow: var(--g-shadow);
  transition: transform .15s ease;
}
.back-btn:active { transform: scale(0.97); }
.back-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
