/* ============================================================
   Pathway Digital — Terms of Service Page Styles
   Design source: designs.pen (ToS Desktop + Mobile frames)
   ============================================================ */

:root {
  /* Brand Colors */
  --primary: #3CB371;
  --accent: #2D8B57;
  --bg-white: #FFFFFF;
  --bg-alt: #F2F6F4;
  --bg-footer: #EEF2F0;
  --heading: #2A2A2A;
  --body: #4A5550;
  --muted: #8A918E;
  --muted-light: #A0A8A4;
  --border: #D0D6D3;

  /* Typography */
  --font: 'Montserrat', sans-serif;

  /* Radius */
  --radius: 8px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--body);
  background: var(--bg-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ============================================================
   Nav Bar
   ============================================================ */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 120px;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
}
.navbar__logo img {
  width: 160px;
  height: auto;
}
.navbar__link {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}
.navbar__link:hover {
  text-decoration: underline;
}

/* ============================================================
   Header
   ============================================================ */
.tos-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 80px 120px 40px 120px;
}
.tos-header__title {
  font-family: var(--font);
  font-size: 40px;
  font-weight: 800;
  color: var(--heading);
  text-align: center;
}
.tos-header__date {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
}

/* ============================================================
   Body / Content Column
   ============================================================ */
.tos-body {
  display: flex;
  justify-content: center;
  padding: 0 120px;
}
.tos-content {
  max-width: 760px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 60px;
}
.tos-content > p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
}

/* ============================================================
   Sections
   ============================================================ */
.tos-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 24px;
}
.tos-section h2 {
  font-family: var(--font);
  font-size: 24px;
  font-weight: 700;
  color: var(--heading);
}
.tos-section h3 {
  font-family: var(--font);
  font-size: 18px;
  font-weight: 600;
  color: var(--heading);
}
.tos-section p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
}
.tos-section ul {
  list-style: disc;
  padding-left: 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.tos-section ul li {
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
}

/* ============================================================
   Disclaimer Cards (Sections 6 & 7 ALL-CAPS blocks)
   ============================================================ */
.disclaimer-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.disclaimer-card p {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--body);
}

/* ============================================================
   Contact Section
   ============================================================ */
.tos-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 32px;
}
.tos-contact h3 {
  font-family: var(--font);
  font-size: 18px;
  font-weight: 600;
  color: var(--heading);
}
.tos-contact p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: var(--bg-footer);
  border-top: 1px solid var(--border);
  padding: 40px 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.footer__logo { width: 140px; height: auto; }
.footer__email {
  font-size: 13px;
  color: var(--primary);
}
.footer__copy {
  font-size: 12px;
  color: var(--muted);
}
.footer__links {
  display: flex;
  gap: 16px;
  align-items: center;
}
.footer__link {
  font-size: 11px;
  color: var(--muted-light);
}

/* ============================================================
   Responsive — Mobile (< 768px)
   ============================================================ */
@media (max-width: 767px) {
  /* Nav */
  .navbar {
    padding: 12px 20px;
  }
  .navbar__logo img {
    width: 120px;
  }
  .navbar__link {
    font-size: 13px;
  }

  /* Header */
  .tos-header {
    padding: 48px 20px 24px 20px;
    gap: 8px;
  }
  .tos-header__title {
    font-size: 28px;
  }
  .tos-header__date {
    font-size: 13px;
  }

  /* Body */
  .tos-body {
    padding: 0 20px;
  }
  .tos-content {
    padding-bottom: 40px;
  }
  .tos-content > p {
    font-size: 15px;
  }

  /* Sections */
  .tos-section {
    gap: 10px;
    padding-top: 20px;
  }
  .tos-section h2 {
    font-size: 20px;
  }
  .tos-section h3 {
    font-size: 16px;
  }
  .tos-section p,
  .tos-section ul li {
    font-size: 15px;
  }

  /* Disclaimer cards */
  .disclaimer-card {
    padding: 16px;
    gap: 12px;
  }
  .disclaimer-card p {
    font-size: 13px;
  }

  /* Contact */
  .tos-contact h3 {
    font-size: 16px;
  }
  .tos-contact p {
    font-size: 15px;
  }

  /* Footer */
  .footer {
    padding: 32px 20px;
    gap: 12px;
  }
  .footer__logo { width: 120px; }
  .footer__email { font-size: 12px; }
  .footer__copy { font-size: 11px; text-align: center; }
  .footer__links { gap: 12px; }
  .footer__link { font-size: 10px; }
}

/* ============================================================
   Tablet (768px - 1024px)
   ============================================================ */
@media (min-width: 768px) and (max-width: 1024px) {
  .navbar {
    padding: 16px 48px;
  }
  .tos-header {
    padding: 64px 48px 32px 48px;
  }
  .tos-body {
    padding: 0 48px;
  }
  .footer {
    padding: 40px 48px;
  }
}
