﻿*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Cairo", "Segoe UI", Tahoma, Arial, sans-serif;
  line-height: 1.75;
  background: #f8fafc;
  color: #0f172a;
}

a {
  color: #7c3aed;
}

.conditions-page {
  max-width: 960px;
  margin: 0 auto;
  padding: 28px 20px 56px;
}

.page-header {
  text-align: center;
  margin-bottom: 32px;
}

.page-header h1 {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
}

.page-header p {
  margin: 0;
  color: #475569;
}

.conditions-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
}

.conditions-toc a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: #334155;
  transition: 0.2s ease;
}

.conditions-toc a:hover {
  border-color: #7c3aed;
  color: #7c3aed;
}

.conditions-toc a.safety-link {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}

.conditions-toc a.safety-link:hover {
  background: #fee2e2;
  border-color: #f87171;
}

.child-safety-block {
  background: linear-gradient(180deg, #fff 0%, #fff7ed 100%);
  border: 2px solid #fb923c;
  border-radius: 16px;
  padding: 28px 24px 32px;
  margin-bottom: 40px;
  box-shadow: 0 10px 30px rgba(249, 115, 22, 0.12);
}

.child-safety-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #dc2626;
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 8px;
  margin-bottom: 16px;
}

.child-safety-block > h2 {
  margin: 0 0 8px;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  color: #9a3412;
  line-height: 1.35;
}

.child-safety-lead {
  margin: 0 0 24px;
  color: #334155;
  font-size: 1.02rem;
}

.child-safety-block section {
  margin-bottom: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid #fed7aa;
}

.child-safety-block section:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.child-safety-block h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
  color: #c2410c;
}

.child-safety-block p,
.child-safety-block li {
  color: #1e293b;
}

.child-safety-block ul,
.terms-block ul {
  margin: 8px 0 16px;
  padding-inline-start: 22px;
}

.child-safety-note {
  background: #fffbeb;
  border-inline-start: 4px solid #f59e0b;
  padding: 12px 14px;
  border-radius: 8px;
  color: #92400e;
  margin-top: 10px;
}

.child-safety-contact {
  background: #fff;
  border: 1px solid #fdba74;
  border-radius: 12px;
  padding: 16px 18px;
  margin-top: 8px;
}

.child-safety-contact p {
  margin: 6px 0;
}

.child-safety-contact code,
code {
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: Consolas, monospace;
  font-size: 0.92em;
  direction: ltr;
  display: inline-block;
}

.child-safety-updated {
  margin-top: 18px;
  font-size: 0.9rem;
  color: #64748b;
}

.terms-block {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 28px 24px 36px;
}

.terms-block > h2 {
  margin: 0 0 24px;
  font-size: 1.5rem;
  font-weight: 800;
  text-align: center;
  color: #0f172a;
  padding-bottom: 16px;
  border-bottom: 2px solid #7c3aed;
}

.hr1 {
  font-size: 1.15rem;
  font-weight: 800;
  width: 100%;
  margin: 24px 0 12px;
  color: #5b21b6;
}

.hr2 {
  font-size: 1rem;
  font-weight: 700;
  width: 100%;
  margin: 18px 0 10px;
  color: #334155;
}

.txt {
  font-size: 1rem;
  width: 100%;
  margin: 0 0 8px;
  color: #1e293b;
}

.terms-block li {
  margin-bottom: 8px;
  color: #1e293b;
}

.terms-intro {
  margin: 0 0 16px;
  color: #475569;
  font-size: 0.98rem;
}

.terms-note {
  background: #f8fafc;
  border-inline-start: 3px solid #7c3aed;
  padding: 10px 14px;
  border-radius: 8px;
  margin: 12px 0 20px;
  font-size: 0.95rem;
  color: #334155;
}

.terms-footer {
  margin-top: 32px;
  text-align: center;
  font-weight: 700;
  color: #475569;
}

@media (max-width: 640px) {
  .conditions-page {
    padding: 20px 14px 40px;
  }

  .child-safety-block,
  .terms-block {
    padding: 20px 16px 24px;
  }
}
