/* Shared layout for /about/privacy and /about/terms */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.65;
  margin: 0;
  padding: 0;
  background-color: #f0f2f5;
  color: #1a1a1a;
  font-size: 1rem;
}

.container {
  max-width: 46rem;
  margin: 1rem auto;
  padding: 1.25rem 1.25rem 2rem;
  background-color: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  border-radius: 8px;
}

h1 {
  font-size: clamp(1.5rem, 5vw, 2rem);
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: #111;
  line-height: 1.25;
}

.meta {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: clamp(1.15rem, 3.5vw, 1.35rem);
  color: #111;
  margin-top: 1.75rem;
  margin-bottom: 0.65rem;
  line-height: 1.3;
}

h3 {
  font-size: 1rem;
  color: #333;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

p,
li {
  margin-bottom: 0.85rem;
}

ul {
  padding-left: 1.35rem;
}

li {
  margin-bottom: 0.45rem;
}

a {
  color: #0b57d0;
  word-break: break-word;
}

a:focus-visible {
  outline: 2px solid #0b57d0;
  outline-offset: 2px;
}

.privacy-section,
.terms {
  margin-bottom: 1.5rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid #eee;
}

/* Last content block before Contact Us — avoid double rule line */
.privacy-section:has(+ .contact),
.terms:has(+ .contact) {
  border-bottom: none;
  padding-bottom: 0;
}

.contact {
  margin-top: 1.5rem;
  padding-top: 0.5rem;
}

@media (max-width: 640px) {
  body {
    font-size: 0.95rem;
  }

  .container {
    margin: 0.5rem;
    padding: 1rem 1rem 1.5rem;
    border-radius: 6px;
  }

  ul {
    padding-left: 1.15rem;
  }
}

@media (max-width: 380px) {
  .container {
    margin: 0;
    padding: 0.875rem;
    border-radius: 0;
  }
}
