/* Legal pages (privacy.html, terms.html). Builds on css/style.css; classes prefixed lg- */

/* ---------- Title band ---------- */
.lg-hero {
  position: relative; color: var(--hpe-white);
  background: linear-gradient(180deg, #071224 0%, #0A1A33 55%, #071224 100%);
}
.lg-hero__horizon {
  position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(124,200,255,0.7) 30%, rgba(255,119,89,0.7) 70%, transparent);
  box-shadow: 0 0 24px rgba(46,139,255,0.6);
}
.lg-hero__horizon::after {
  content: ""; position: absolute; left: 10%; right: 10%; top: 0; height: 120px;
  background: radial-gradient(ellipse at 50% 0%, rgba(46,139,255,0.22), transparent 70%);
}
.lg-hero__inner { position: relative; padding-top: 72px; padding-bottom: 56px; display: flex; flex-direction: column; gap: 14px; }
.lg-hero__kicker { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; color: var(--hpe-blue-soft); }
.lg-hero__title { margin: 0; font-size: clamp(34px, 4vw, 52px); line-height: 1.1; letter-spacing: -0.02em; }
.lg-hero__date { font-size: 15px; color: var(--hpe-muted); }

/* Placeholders that still need confirming before launch */
.lg-confirm { background: none; color: #B8432A; font-weight: 500; }
.lg-confirm--dark { color: var(--hpe-accent); }

/* ---------- Body: table of contents + article ---------- */
.lg-body { background: var(--hpe-white); }
.lg-layout {
  padding-top: 56px; padding-bottom: 96px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 40px 64px; align-items: start;
}
.lg-toc {
  position: sticky; top: 24px; display: flex; flex-direction: column; gap: 2px;
  padding: 20px; border-radius: 16px; background: var(--hpe-mist);
}
.lg-toc__title { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; color: var(--hpe-blue); margin-bottom: 8px; }
.lg-toc__link { font-size: 14px; color: var(--hpe-slate); text-decoration: none; padding: 6px 0; }
.lg-toc__link:hover, .lg-toc__link:focus-visible { color: var(--hpe-blue); }

.lg-article { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.lg-note {
  display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 14px;
  background: #FFF4EF; border: 1px solid #FFC9B8; color: #7A2E17; font-size: 14px; line-height: 1.6;
}
.lg-note__label { flex: 0 0 auto; }
.lg-note .lg-confirm { color: inherit; font-weight: 600; }
.lg-lead { margin: 0; font-size: 18px; line-height: 1.7; color: var(--hpe-ink); }
.lg-section {
  scroll-margin-top: 24px; display: flex; flex-direction: column; gap: 12px;
  padding-top: 28px; border-top: 1px solid #E4E9F0;
}
.lg-section__title { margin: 0; font-size: 22px; line-height: 1.3; color: var(--hpe-ink); }
.lg-section p { margin: 0; font-size: 16px; line-height: 1.75; color: var(--hpe-slate); overflow-wrap: anywhere; }
.lg-section a { color: var(--hpe-blue); }

/* ---------- Footer ---------- */
.lg-footer { padding-top: 56px; }
.hpe-legal__nav a[aria-current="page"] { color: var(--hpe-white); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Responsive ---------- */
@media (min-width: 960px) {
  .lg-layout { grid-template-columns: 260px minmax(0, 1fr); }
}
@media (max-width: 959px) {
  .lg-toc { position: static; }
}
@media (max-width: 640px) {
  .lg-hero__inner { padding-top: 48px; padding-bottom: 40px; }
  .lg-layout { padding-top: 40px; padding-bottom: 64px; gap: 32px; }
  .lg-lead { font-size: 17px; }
  .lg-section__title { font-size: 20px; }
  .lg-note { flex-direction: column; gap: 4px; }
  .lg-footer { padding-top: 40px; }
}
