/* PIP My Manager privacy (and shared microsite) — matches Angular home shell */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body.pip-theme {
  --pip-coral: #e86a5a;
  --pip-coral-dark: #c45c4a;
  --pip-coral-deep: #9e4336;
  --pip-surface: #fffaf7;
  --pip-surface-2: #f7f1ec;
  --pip-ink: #3a2420;
  --pip-muted: #6b5852;
  --pip-line: #e8ddd7;
  margin: 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--pip-surface-2);
  color: var(--pip-ink);
  line-height: 1.6;
}

body.pip-theme a {
  color: var(--pip-coral-dark);
  text-decoration: none;
}

body.pip-theme a:hover {
  color: var(--pip-coral);
}

/* —— Nav (same as Angular app shell) —— */
body.pip-theme .navbar {
  background: var(--pip-surface);
  box-shadow: 0 1px 0 var(--pip-line);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: none;
}

body.pip-theme .nav-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

body.pip-theme .nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--pip-ink);
  transition: transform 0.3s ease;
}

body.pip-theme .nav-brand:hover {
  transform: scale(1.05);
  color: var(--pip-ink);
}

body.pip-theme .brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: block;
  flex-shrink: 0;
}

body.pip-theme .brand-text {
  color: var(--pip-coral-dark);
}

body.pip-theme .nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}

body.pip-theme .nav-links a {
  text-decoration: none;
  color: var(--pip-muted);
  font-weight: 600;
  transition: color 0.3s ease;
  padding: 8px 16px;
  border-radius: 6px;
}

body.pip-theme .nav-links a:hover {
  color: var(--pip-coral-dark);
}

body.pip-theme .nav-links a.active {
  color: var(--pip-coral-dark);
  background: var(--pip-surface-2);
}

/* —— Page header band (echoes home coral hero) —— */
body.pip-theme .pip-page-hero {
  background: linear-gradient(160deg, #c45c4a 0%, #9e4336 48%, #3a2420 100%);
  color: #fffaf7;
  padding: 56px 20px 48px;
  text-align: center;
}

body.pip-theme .pip-page-hero-inner {
  max-width: 800px;
  margin: 0 auto;
}

body.pip-theme .pip-page-hero .hero-logo {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  margin: 0 auto 1rem;
  display: block;
  box-shadow: 0 8px 24px rgba(58, 36, 32, 0.28);
}

body.pip-theme .pip-page-hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  text-shadow: 0 2px 10px rgba(58, 36, 32, 0.25);
  border: none;
}

body.pip-theme .pip-page-hero h1::after {
  display: none;
}

body.pip-theme .pip-page-hero .last-updated {
  margin: 0;
  color: #f8e4de;
  font-size: 0.95rem;
  opacity: 0.95;
  border: none;
}

/* —— Legal content —— */
body.pip-theme main {
  flex: 1;
  background: var(--pip-surface-2);
}

body.pip-theme .pip-legal {
  max-width: 800px;
  margin: -28px auto 0;
  padding: 0 20px 48px;
  position: relative;
  z-index: 1;
}

body.pip-theme .pip-legal-card {
  background: var(--pip-surface);
  border: 1px solid var(--pip-line);
  border-radius: 16px;
  padding: 28px 28px 12px;
  box-shadow: 0 10px 28px rgba(58, 36, 32, 0.08);
}

body.pip-theme .content-section {
  margin: 0 0 1.75rem;
  padding: 0;
  border: none;
  border-left: none;
  background: transparent;
  box-shadow: none;
}

body.pip-theme .content-section h2 {
  margin: 0 0 0.75rem;
  padding: 0 0 0.55rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--pip-coral-dark);
  border-bottom: 2px solid rgba(196, 92, 74, 0.22);
}

body.pip-theme .content-section h2::before {
  display: none;
}

body.pip-theme .content-section p {
  margin: 0 0 0.85rem;
  color: var(--pip-ink);
  font-size: 1.02rem;
}

body.pip-theme .content-section a {
  color: var(--pip-coral-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

body.pip-theme .content-section a::after {
  display: none;
}

body.pip-theme .content-section a:hover {
  color: var(--pip-coral);
}

body.pip-theme .content-section code {
  font-size: 0.92em;
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: #f3e8e3;
  color: var(--pip-ink);
}

body.pip-theme .pip-legal-list {
  margin: 0.5rem 0 0.85rem;
  padding-left: 1.25rem;
}

body.pip-theme .pip-legal-list li {
  margin: 0.4rem 0;
  color: var(--pip-ink);
}

/* —— Footer (same as Angular) —— */
body.pip-theme .footer {
  background: #3a2420;
  color: #eadad4;
  padding: 32px 20px;
  margin-top: auto;
  border-top: none;
  text-align: center;
}

body.pip-theme .footer-content {
  max-width: 1400px;
  margin: 0 auto;
}

body.pip-theme .footer-content > p {
  margin: 8px 0;
  opacity: 0.9;
}

body.pip-theme .footer-links {
  margin-top: 12px;
}

body.pip-theme .footer-links a {
  color: #f0c4b8;
  text-decoration: none;
  font-weight: 600;
}

body.pip-theme .footer-links a:hover {
  color: #fff;
  text-decoration: underline;
}

body.pip-theme .footer-apps {
  margin: 1.5rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(232, 106, 90, 0.35);
}

body.pip-theme .footer-apps-label {
  margin: 0 0 0.7rem;
  font-weight: 700;
  color: #f0c4b8;
}

body.pip-theme .footer-apps-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.15rem;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

body.pip-theme .footer-apps-list a {
  color: #ffd4c8;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

body.pip-theme .footer-apps-list a:hover {
  color: #fff;
}

@media (max-width: 768px) {
  body.pip-theme .nav-content {
    flex-direction: column;
    gap: 16px;
  }

  body.pip-theme .nav-links {
    width: 100%;
    justify-content: center;
    gap: 8px;
  }

  body.pip-theme .brand-text {
    font-size: 1.2rem;
  }

  body.pip-theme .pip-page-hero {
    padding: 40px 20px 36px;
  }

  body.pip-theme .pip-legal-card {
    padding: 22px 18px 8px;
    border-radius: 14px;
  }
}
