/* ============================================================
   Pph Hi Gp Inc. — Shared Legal Stylesheet
   Used by privacy.html and terms-of-service.html ONLY.
   Theme: Dark near-black with Tiffany Teal accent #0ABAB5
   ============================================================ */

.legal-page {
  background-color: #0F1114;
  color: #E9F2F0;
}

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

.legal-page html {
  font-size: 16px;
}

.legal-page body {
  font-size: 16px;
  font-family: "Segoe UI", "Inter", "Helvetica Neue", Arial, sans-serif;
  background-color: #0F1114;
  color: #E9F2F0;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.legal-page a {
  color: #67E8F9;
  text-decoration: none;
}

.legal-page a:hover {
  text-decoration: underline;
}

.legal-page h1,
.legal-page h2,
.legal-page h3 {
  line-height: 1.25;
  font-weight: 700;
  color: #E9F2F0;
}

/* Scope-isolation: neutralize any same-id section styling leakage */
.legal-page .legal-content section {
  background-color: transparent !important;
}

/* ---------- Legal header ---------- */

.legal-page .legal-header {
  background: linear-gradient(180deg, #04252B 0%, #0F1114 100%);
  border-bottom: 3px solid #0ABAB5;
  padding: 64px 0 56px;
}

.legal-page .legal-header .container {
  width: min(820px, 100% - 48px);
  margin: 0 auto;
  padding: 0 24px;
}

.legal-page .legal-header .legal-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.legal-page .legal-header .monogram {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background-color: #0ABAB5;
  color: #04252B;
  font-weight: 800;
  font-size: 14px;
  border-radius: 4px;
}

.legal-page .legal-header .brand-text {
  font-weight: 700;
  font-size: 16px;
  color: #E9F2F0;
}

.legal-page .legal-header h1 {
  font-size: clamp(30px, 4vw, 46px);
  color: #E9F2F0;
  margin-bottom: 14px;
}

.legal-page .legal-header .updated {
  font-size: 14px;
  color: #67E8F9;
  font-weight: 600;
}

/* ---------- Legal content layout ---------- */

.legal-page .legal-content {
  padding: 56px 0 72px;
}

.legal-page .legal-content .container {
  width: min(820px, 100% - 48px);
  margin: 0 auto;
  padding: 0 24px;
}

.legal-page .legal-content .toc {
  background-color: #14171C;
  border: 1px solid #232A30;
  border-left: 4px solid #0ABAB5;
  border-radius: 8px;
  padding: 26px 28px;
  margin-bottom: 48px;
}

.legal-page .legal-content .toc h2 {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #0ABAB5;
  margin-bottom: 16px;
}

.legal-page .legal-content .toc ol {
  list-style: none;
  columns: 2;
  column-gap: 32px;
}

.legal-page .legal-content .toc li {
  margin-bottom: 10px;
}

.legal-page .legal-content .toc a {
  font-size: 14px;
  color: #B6C6C3;
  transition: color 0.2s ease;
}

.legal-page .legal-content .toc a:hover {
  color: #67E8F9;
}

.legal-page .legal-content section {
  margin-bottom: 52px;
}

.legal-page .legal-content section h2 {
  font-size: 24px;
  color: #E9F2F0;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #232A30;
}

.legal-page .legal-content section h3 {
  font-size: 18px;
  color: #67E8F9;
  margin: 24px 0 10px;
}

.legal-page .legal-content section p {
  color: #B6C6C3;
  font-size: 16px;
  margin-bottom: 16px;
}

.legal-page .legal-content section ul {
  list-style: none;
  margin: 0 0 16px 4px;
}

.legal-page .legal-content section ul li {
  position: relative;
  padding-left: 24px;
  color: #B6C6C3;
  font-size: 16px;
  margin-bottom: 10px;
}

.legal-page .legal-content section ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background-color: #0ABAB5;
}

.legal-page .legal-content section strong {
  color: #E9F2F0;
  font-weight: 600;
}

/* ---------- Legal footer ---------- */

.legal-page .legal-footer {
  background-color: #0F1114;
  border-top: 3px solid #0ABAB5;
  padding: 32px 0;
}

.legal-page .legal-footer .container {
  width: min(820px, 100% - 48px);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.legal-page .legal-footer p {
  color: #7E8F8C;
  font-size: 13px;
}

.legal-page .legal-footer a {
  color: #B6C6C3;
  font-size: 14px;
}

.legal-page .legal-footer a:hover {
  color: #67E8F9;
}

/* ---------- Responsive ---------- */

@media (max-width: 620px) {
  .legal-page .legal-content .toc ol {
    columns: 1;
  }

  .legal-page .legal-header {
    padding: 44px 0 40px;
  }
}
