/* =========================================
   OHAL HEALTH — LEGAL PAGES
   Privacy | Terms | Refund Policy
========================================= */

/* GLOBAL */

:root {
  --white: #ffffff;
  --black: #111111;
  --dark: #171917;
  --text: #292d27;
  --muted: #72776f;
  --light: #f6f7f4;
  --border: #e5e8e1;
  --lime: #a8e629;
  --lime-dark: #8fc51c;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: var(--white);
  color: var(--text);
  font-family: "DM Sans", sans-serif;
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

/* HEADER */

.legal-header {
  min-height: 78px;
  width: 100%;
  padding: 8px max(22px, calc((100% - 1160px) / 2));

  display: flex;
  align-items: center;
  justify-content: space-between;

  background: var(--white);
  border-bottom: 1px solid var(--border);

  position: sticky;
  top: 0;
  z-index: 100;
}

.legal-brand {
  display: flex;
  align-items: center;
}

.legal-brand img {
  width: 116px;
  height: 62px;
  object-fit: contain;
}

.back-link {
  color: var(--black);
  font-size: 12px;
  font-weight: 700;
}

.back-link:hover {
  color: var(--lime-dark);
}

/* MAIN LEGAL CONTENT */

.legal-container {
  width: min(850px, calc(100% - 40px));
  margin: 0 auto;
  padding: 75px 0 100px;
  overflow-wrap: break-word;
}

.legal-container .eyebrow {
  color: #68715e;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.legal-container h1 {
  margin: 15px 0;
  color: var(--black);
  font-family: "Manrope", sans-serif;
  font-size: clamp(38px, 6vw, 54px);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.15;
}

.legal-updated {
  margin-bottom: 35px;
  color: var(--muted);
  font-size: 12px;
}

.legal-intro {
  margin-bottom: 35px;
  color: #62675f;
  font-size: 15px;
  line-height: 1.9;
}

/* SECTIONS */

.legal-container section {
  margin-top: 35px;
}

.legal-container h2 {
  margin-bottom: 13px;
  color: var(--black);
  font-family: "Manrope", sans-serif;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.4;
}

.legal-container p {
  margin-bottom: 15px;
  color: #62675f;
  font-size: 13px;
  line-height: 1.9;
}

.legal-container ul,
.legal-container ol {
  margin: 12px 0 20px;
  padding-left: 23px;
}

.legal-container li {
  margin-bottom: 8px;
  padding-left: 3px;
  color: #62675f;
  font-size: 13px;
  line-height: 1.9;
}

.legal-container li::marker {
  color: var(--lime-dark);
}

.legal-container strong {
  color: var(--black);
  font-weight: 700;
}

/* LINKS */

.legal-container a {
  color: #527a0d;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--lime);
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.legal-container a:hover {
  color: #304c05;
}

/* CONTACT BOX */

.legal-contact {
  margin-top: 50px;
  padding: 25px;
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.legal-contact h2 {
  margin-bottom: 13px;
}

.legal-contact p:last-child {
  margin-bottom: 0;
}

/* FOOTER */

.legal-footer {
  padding: 42px 20px 28px;
  background: var(--dark);
  color: var(--white);
  text-align: center;
}

.legal-footer > a {
  display: inline-block;
  color: var(--lime);
  font-family: "Manrope", sans-serif;
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
}

.legal-footer nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-top: 22px;
}

.legal-footer nav a {
  color: #c2c9bd;
  font-size: 11px;
  text-decoration: none;
}

.legal-footer nav a:hover {
  color: var(--lime);
}

.legal-footer > p {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #343a32;
  color: #8e9789;
  font-size: 11px;
}

/* MOBILE */

@media (max-width: 600px) {

  .legal-header {
    min-height: 67px;
    padding: 5px 16px;
  }

  .legal-brand img {
    width: 95px;
    height: 54px;
  }

  .back-link {
    font-size: 11px;
  }

  .legal-container {
    width: calc(100% - 36px);
    padding: 45px 0 65px;
  }

  .legal-container h1 {
    font-size: clamp(34px, 9vw, 43px);
    letter-spacing: -1.5px;
  }

  .legal-container h2 {
    font-size: 17px;
  }

  .legal-container p,
  .legal-container li {
    font-size: 12px;
  }

  .legal-contact {
    padding: 20px;
  }

  .legal-footer {
    padding: 35px 16px 24px;
  }

  .legal-footer nav {
    gap: 14px 18px;
  }

}

/* SMALL MOBILE */

@media (max-width: 360px) {

  .legal-container {
    width: calc(100% - 28px);
  }

  .legal-header {
    padding-left: 12px;
    padding-right: 12px;
  }

}

/* ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }

}