/* Shared styles for the static (non-SPA) pages: /about/, /privacy/, /terms/, /operator/, /contact/ */

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

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

a {
  text-decoration: none;
}

.about {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  color: #123044;
  background:
    radial-gradient(900px 480px at 100% -10%, rgba(42, 212, 192, 0.28), transparent 60%),
    radial-gradient(720px 420px at -10% 20%, rgba(33, 150, 243, 0.18), transparent 55%),
    #f4fbfb;
}

/* Header */

.nav,
.about-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1120px, calc(100% - 2.5rem));
  margin: 0 auto;
}

.nav {
  padding: 1.25rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: inherit;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand img {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 8px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.signin-link {
  color: #149e90;
  font-weight: 700;
}

.signin-link:hover {
  color: #0f8579;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: #149e90;
  color: #fff;
  font-weight: 700;
  line-height: 1;
}

.cta:hover {
  background: #0f8579;
  color: #fff;
}

.cta-large {
  padding: 0.9rem 1.4rem;
  font-size: 1.05rem;
}

/* Footer */

.about-footer {
  flex-wrap: wrap;
  margin-top: auto;
  padding: 1.25rem 0 1.5rem;
  color: #5b7382;
  font-size: 0.85rem;
}

.about-footer p {
  margin: 0;
}

.about-footer a {
  color: #149e90;
  font-weight: 700;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

/* Document pages (privacy policy, terms, etc.) */

.doc {
  width: min(800px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 1.5rem 2rem 3rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.85);
  margin-bottom: 3rem;
  line-height: 1.85;
}

.doc h1 {
  margin: 0.5rem 0 1.5rem;
  font-size: clamp(1.6rem, 3.2vw, 2.1rem);
  font-weight: 800;
  line-height: 1.35;
}

.doc h2 {
  margin: 2.25rem 0 0.5rem;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid #d4ecec;
  font-size: 1.2rem;
  font-weight: 800;
}

.doc h3 {
  margin: 1.5rem 0 0.25rem;
  font-size: 1.05rem;
}

.doc p,
.doc li {
  color: #2c4556;
}

.doc ul,
.doc ol {
  padding-left: 1.5rem;
}

.doc a {
  color: #0f7f74;
  text-decoration: underline;
}

.doc table {
  width: 100%;
  border-collapse: collapse;
}

.doc th,
.doc td {
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid #d4ecec;
  text-align: left;
  vertical-align: top;
}

.doc th {
  width: 9rem;
  white-space: nowrap;
}

.doc .meta {
  margin-top: 2.5rem;
  color: #5b7382;
  font-size: 0.9rem;
  text-align: right;
}

@media (max-width: 520px) {
  .nav,
  .about-footer {
    width: calc(100% - 1.5rem);
  }

  .doc {
    width: calc(100% - 1.5rem);
    padding: 1rem 1.1rem 2rem;
  }

  .doc th {
    width: 6rem;
    white-space: normal;
  }

  .brand {
    gap: 0.4rem;
    letter-spacing: 0.04em;
  }

  .cta {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
  }
}
