/* GreenNumber static legal/support site — local CSS only, no remote assets. */

:root {
  --teal: #2f8f84;
  --teal-deep: #1b4f4a;
  --teal-bright: #3faea0;
  --bg: #f2f6f5;
  --surface: #ffffff;
  --text: #0f1a18;
  --muted: #4a635e;
  --border: #b8cbc6;
  --max: 44rem;
  --radius: 12px;
  --space: 1rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, "Noto Sans Arabic", "Noto Naskh Arabic",
    Arial, sans-serif;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text);
  background: linear-gradient(180deg, #e4ebea 0%, var(--bg) 28%, var(--bg) 100%);
  min-height: 100vh;
}

a {
  color: var(--teal-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover,
a:focus-visible {
  color: var(--teal);
}

.site-header {
  background: var(--teal-deep);
  color: #f5faf9;
  padding: 1.25rem var(--space);
}

.site-header .inner,
.site-footer .inner,
main .inner {
  max-width: var(--max);
  margin: 0 auto;
}

.brand {
  display: inline-block;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  color: #f5faf9;
  text-decoration: none;
}

.brand:hover,
.brand:focus-visible {
  color: #ffffff;
}

.tagline {
  margin: 0.35rem 0 0;
  color: #b8ccc7;
  font-size: 0.95rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 1rem;
}

.nav a {
  color: #e8f6f3;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding-bottom: 0.1rem;
}

.nav a:hover,
.nav a:focus-visible,
.nav a[aria-current="page"] {
  border-bottom-color: var(--teal-bright);
  color: #ffffff;
}

main {
  padding: 1.75rem var(--space) 3rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  box-shadow: 0 1px 2px rgba(15, 26, 24, 0.04);
}

.card + .card {
  margin-top: 1.25rem;
}

h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.55rem, 4vw, 1.9rem);
  line-height: 1.3;
  color: var(--teal-deep);
}

h2 {
  margin: 1.75rem 0 0.65rem;
  font-size: 1.2rem;
  color: var(--teal-deep);
}

h3 {
  margin: 1.1rem 0 0.4rem;
  font-size: 1.05rem;
  color: var(--text);
}

p {
  margin: 0 0 0.85rem;
}

.lede {
  color: var(--muted);
  font-size: 1.02rem;
}

.meta {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

ul {
  margin: 0 0 0.85rem;
  padding-inline-start: 1.35rem;
}

li {
  margin-bottom: 0.35rem;
}

.country-list {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 1rem;
  display: grid;
  gap: 0.4rem;
}

.country-list li {
  margin: 0;
  padding: 0.55rem 0.75rem;
  background: #f2f6f5;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  align-items: baseline;
}

.country-list .iso {
  font-weight: 700;
  color: var(--teal-deep);
  min-width: 2rem;
}

.country-list .dial {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  color: var(--muted);
}

.lang-block + .lang-block {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 2px solid var(--border);
}

.lang-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.5rem;
}

.contact-box {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  background: #eef7f5;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.contact-box .label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.contact-box a {
  font-weight: 700;
  font-size: 1.05rem;
  word-break: break-word;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.button {
  display: inline-block;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  background: var(--teal);
  color: #ffffff !important;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--teal);
}

.button:hover,
.button:focus-visible {
  background: var(--teal-deep);
  border-color: var(--teal-deep);
}

.button-secondary {
  background: transparent;
  color: var(--teal-deep) !important;
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: #e8f3f1;
  color: var(--teal-deep) !important;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.25rem var(--space) 2rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer a {
  font-weight: 600;
}

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

.ltr {
  direction: ltr;
  text-align: left;
}

.definition dt {
  font-weight: 700;
  margin-top: 0.75rem;
}

.definition dd {
  margin: 0.2rem 0 0;
  color: var(--muted);
}

@media (min-width: 640px) {
  .card {
    padding: 1.6rem 1.75rem;
  }

  .country-list {
    grid-template-columns: 1fr 1fr;
  }
}
