:root {
  --legal-navy: #04364e;
  --legal-navy-deep: #0b0e14;
  --legal-teal: #00cbc1;
  --legal-teal-soft: #4cc9b0;
  --legal-ink: #2e586a;
  --legal-muted: #49575d;
  --legal-surface: #ffffff;
  --legal-bg: #eef5f7;
  --legal-line: rgba(4, 54, 78, 0.12);
}

body {
  margin: 0;
  background: var(--legal-bg);
  color: var(--legal-muted);
  font-family: "Inter", Arial, sans-serif;
  line-height: 1.65;
}

body > header {
  position: relative;
  overflow: hidden;
  padding: 34px 24px 54px;
  color: #ffffff;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(4, 54, 78, 0.96), rgba(3, 110, 121, 0.9)),
    url("../img/hero.png") center top / cover no-repeat;
}

body > header::before {
  content: "JOINT RELAX";
  display: inline-flex;
  margin-bottom: 28px;
  color: #ffffff;
  font-family: "Montserrat", "Inter", sans-serif;
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

body > header h1 {
  margin: 0;
  color: #ffffff;
  font-family: "Montserrat", "Inter", sans-serif;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.15;
}

body > header h1::after {
  content: "";
  display: block;
  width: 92px;
  height: 4px;
  margin: 18px auto 0;
  border-radius: 999px;
  background: var(--legal-teal);
}

body > header p {
  margin: 16px 0 0;
  color: #eef5f7;
  font-size: 16px;
  font-weight: 500;
}

main {
  width: min(100%, 1060px);
  margin: -28px auto 0;
  padding: 0 24px 72px;
  position: relative;
  z-index: 1;
}

section {
  margin: 0 0 18px;
  padding: clamp(24px, 4vw, 34px);
  border: 1px solid var(--legal-line);
  border-radius: 10px;
  background: var(--legal-surface);
  box-shadow: 0 18px 42px rgba(4, 54, 78, 0.08);
}

section h2 {
  margin: 0 0 14px;
  color: var(--legal-navy);
  font-family: "Montserrat", "Inter", sans-serif;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  line-height: 1.25;
}

p,
li {
  color: var(--legal-muted);
  font-size: 17px;
}

p {
  margin: 0 0 14px;
}

p:last-child,
li:last-child {
  margin-bottom: 0;
}

b,
strong {
  color: var(--legal-ink);
  font-weight: 700;
}

a {
  color: var(--legal-navy);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(0, 203, 193, 0.55);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--legal-teal);
}

ul,
ol {
  margin: 0 0 16px;
  padding-left: 24px;
}

ul {
  list-style: disc;
}

ol {
  list-style: decimal;
}

.list-none {
  list-style: none;
  padding-left: 0;
}

li {
  margin-bottom: 10px;
}

table {
  width: 100%;
  margin: 18px 0;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--legal-line);
  border-radius: 8px;
}

th,
td {
  padding: 14px 16px;
  border: 1px solid var(--legal-line);
  color: var(--legal-muted);
  text-align: left;
  vertical-align: top;
}

th {
  background: #e2f3f5;
  color: var(--legal-navy);
  font-weight: 700;
}

main section:last-child {
  margin-bottom: 0;
}

body > footer {
  padding: 42px 24px;
  border-top: 2px solid #ffffff;
  background: linear-gradient(180deg, var(--legal-navy) 0%, #036e79 100%);
  color: #ffffff;
  text-align: center;
}

body > footer::before {
  content: "Joint Relax";
  display: block;
  margin-bottom: 18px;
  color: #ffffff;
  font-family: "Montserrat", "Inter", sans-serif;
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 700;
  text-transform: uppercase;
}

body > footer p {
  max-width: 900px;
  margin: 0 auto;
  color: #eef5f7;
  font-size: 15px;
  line-height: 1.55;
}

@media (max-width: 700px) {
  body > header {
    padding: 28px 20px 46px;
    background:
      linear-gradient(135deg, rgba(4, 54, 78, 0.96), rgba(3, 110, 121, 0.9)),
      url("../img/hero-mobile.png") center top / cover no-repeat;
  }

  main {
    padding: 0 16px 48px;
  }

  section {
    padding: 22px 18px;
  }

  p,
  li {
    font-size: 16px;
  }

  table {
    display: block;
    overflow-x: auto;
  }
}
