:root {
  color: #18324a;
  background: #edf6fc;
  font-family:
    Inter, "Segoe UI", Tahoma, Arial, "Noto Sans Arabic", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 280px;
  margin: 0;
  background:
    radial-gradient(circle at 12% 0%, rgba(66, 153, 225, 0.15), transparent 34rem),
    linear-gradient(180deg, #f9fcff 0%, #edf6fc 100%);
  color: #18324a;
  line-height: 1.75;
}

a {
  color: #176fb0;
}

a:hover {
  color: #0f5488;
}

.legal-shell {
  width: min(940px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 64px;
}

.legal-header,
.legal-document {
  border: 1px solid rgba(92, 153, 194, 0.24);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 50px rgba(29, 79, 113, 0.1);
}

.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
  padding: 18px 22px;
  border-radius: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  color: inherit;
  text-decoration: none;
}

.brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.brand strong {
  display: block;
  font-size: 17px;
}

.brand span {
  display: block;
  color: #688299;
  font-size: 13px;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.legal-nav a {
  padding: 7px 12px;
  border-radius: 999px;
  background: #eef7fd;
  color: #285d83;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.legal-nav a[aria-current="page"] {
  background: #267fba;
  color: white;
}

.legal-document {
  overflow: hidden;
  border-radius: 24px;
}

.document-intro {
  padding: 34px clamp(22px, 5vw, 54px);
  border-bottom: 1px solid #dcebf5;
  background: linear-gradient(135deg, #ffffff, #eef8ff);
}

.eyebrow {
  margin: 0 0 6px;
  color: #267fba;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: #17344d;
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.15;
}

.effective-date {
  margin: 12px 0 0;
  color: #688299;
}

.language-section {
  padding: 34px clamp(22px, 5vw, 54px) 44px;
}

.language-section + .language-section {
  border-top: 8px solid #edf6fc;
}

.language-label {
  display: inline-flex;
  margin: 0 0 20px;
  padding: 5px 11px;
  border-radius: 999px;
  background: #e3f3fd;
  color: #176b9f;
  font-size: 13px;
  font-weight: 800;
}

h2 {
  margin: 30px 0 8px;
  color: #1d577d;
  font-size: 21px;
  line-height: 1.35;
}

h2:first-of-type {
  margin-top: 0;
}

p,
ul {
  margin-top: 8px;
  margin-bottom: 12px;
}

ul {
  padding-inline-start: 24px;
}

.contact-card {
  margin-top: 22px;
  padding: 17px 19px;
  border-radius: 16px;
  background: #edf7fd;
}

.contact-card strong {
  display: block;
}

.legal-footer {
  padding: 22px;
  color: #648096;
  font-size: 13px;
  text-align: center;
}

[dir="rtl"] {
  font-family: Tahoma, Arial, "Noto Sans Arabic", sans-serif;
}

@media (max-width: 640px) {
  .legal-shell {
    width: min(100% - 18px, 940px);
    padding-top: 10px;
  }

  .legal-header {
    align-items: flex-start;
    flex-direction: column;
    border-radius: 16px;
  }

  .legal-nav {
    justify-content: flex-start;
  }

  .legal-document {
    border-radius: 18px;
  }
}
