/* Legal pages (privacy, terms, refund, delete) — builds on home.css */
.pl-hero { position: relative; padding: 72px 0 56px; text-align: center; background:
    radial-gradient(800px 360px at 85% -10%, rgba(182, 102, 199, .22), transparent 60%),
    radial-gradient(600px 320px at 0% 0%, rgba(182, 102, 199, .12), transparent 60%), #fff; }
.pl-hero h1 { font-size: clamp(30px, 4.4vw, 48px); font-weight: 700; line-height: 1.15; letter-spacing: -.025em; margin: 16px auto 14px; max-width: 900px; }
.pl-hero .hm-sub { margin-inline: auto; font-size: 15px; }
.pl-hero .hm-sub a { color: var(--hm-primary-dark); font-weight: 500; text-decoration: none; }
.pl-hero .hm-sub a:hover { text-decoration: underline; }

.pl-wrap { padding: 8px 0 110px; background: linear-gradient(180deg, #fff, #faf3fc); }
.pl-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 32px; align-items: start; }
.pl-card { background: #fff; border: 1px solid var(--hm-line); border-radius: 24px; box-shadow: 0 30px 60px -36px rgba(94, 40, 112, .35); }

/* sidebar */
.pl-side { position: sticky; top: 100px; display: grid; gap: 18px; max-height: calc(100vh - 120px); overflow-y: auto; scrollbar-width: thin; padding-bottom: 4px; }
.pl-side .pl-card { padding: 20px; }
.pl-side h6 { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--hm-muted); margin: 0 0 12px; }
.pl-links a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; color: var(--hm-ink); font-size: 14.5px; font-weight: 500; text-decoration: none; transition: background .2s, color .2s; }
.pl-links a i { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--hm-primary-soft); color: var(--hm-primary-dark); transition: .2s; }
.pl-links a svg { width: 18px; height: 18px; }
.pl-links a:hover { background: var(--hm-primary-soft); }
.pl-links a.active { background: linear-gradient(135deg, var(--hm-primary), var(--hm-primary-dark)); color: #fff; box-shadow: 0 12px 24px -12px rgba(129, 72, 141, .8); }
.pl-links a.active i { background: rgba(255, 255, 255, .2); color: #fff; }
.pl-toc nav { display: grid; gap: 2px; max-height: 280px; overflow-y: auto; scrollbar-width: thin; }
.pl-toc nav a { display: block; padding: 7px 12px; border-left: 2px solid var(--hm-line); color: var(--hm-muted); font-size: 13.5px; text-decoration: none; line-height: 1.4; transition: .2s; }
.pl-toc nav a:hover { color: var(--hm-primary-dark); }
.pl-toc nav a.on { border-color: var(--hm-primary); color: var(--hm-primary-dark); font-weight: 600; background: var(--hm-primary-soft); border-radius: 0 10px 10px 0; }
.pl-sites a { display: block; padding: 8px 12px; border-radius: 12px; color: var(--hm-primary-dark); font-size: 14px; font-weight: 500; text-decoration: none; }
.pl-sites a:hover { background: var(--hm-primary-soft); }
.pl-sites a::before { content: "\2197"; margin-right: 8px; opacity: .7; }

/* document body — original markup, restyled */
.pl-content { padding: 48px 52px; font-size: 15.5px; line-height: 1.85; color: #4d4357; }
.pl-content p { margin: 0 0 16px; text-align: left; }
.pl-content strong, .pl-content b { color: var(--hm-ink); font-weight: 600; }
.pl-content h5 { position: relative; font-size: 21px; font-weight: 700; letter-spacing: -.01em; line-height: 1.35; color: var(--hm-ink); margin: 34px 0 14px; padding-left: 18px; scroll-margin-top: 96px; }
.pl-content h5::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 4px; border-radius: 9px; background: linear-gradient(180deg, var(--hm-primary), var(--hm-primary-dark)); }
.pl-content h5 b { font-weight: 700; }
.pl-content > h5:first-child { margin-top: 0; }
.pl-content h6 { font-size: 16px; font-weight: 600; color: var(--hm-ink); margin: 22px 0 8px; line-height: 1.5; }
.pl-content ul, .pl-content ol { margin: 0 0 16px; padding-left: 22px; }
.pl-content ul.list-unstyled, .pl-content ol.list-unstyled { padding-left: 0; list-style: none; }
.pl-content ul:not(.list-unstyled) li::marker { color: var(--hm-primary); }
.pl-content li { margin-bottom: 8px; }
.pl-content hr { border: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--hm-line) 20%, var(--hm-line) 80%, transparent); margin: 30px 0; opacity: 1; }
.pl-content a { color: var(--hm-primary-dark); font-weight: 500; text-decoration: underline !important; text-decoration-color: rgba(129, 72, 141, .35) !important; text-underline-offset: 3px; }
.pl-content a:hover { text-decoration-color: var(--hm-primary-dark) !important; }
.pl-content table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14.5px; display: block; overflow-x: auto; }
.pl-content th, .pl-content td { padding: 12px 14px; border: 1px solid var(--hm-line); text-align: left; vertical-align: top; }
.pl-content th { background: var(--hm-primary-soft); color: var(--hm-primary-dark); font-weight: 600; }

@media (max-width: 991px) {
    .pl-hero { padding: 48px 0 36px; }
    .pl-wrap { padding-bottom: 64px; }
    .pl-grid { grid-template-columns: 1fr; gap: 20px; }
    .pl-side { position: static; max-height: none; overflow: visible; }
    .pl-links { display: flex; gap: 8px; overflow-x: auto; padding: 14px !important; scrollbar-width: none; }
    .pl-links h6 { display: none; }
    .pl-links a { flex: none; white-space: nowrap; }
    .pl-toc, .pl-sites { display: none; }
    .pl-content { padding: 28px 22px; font-size: 15px; }
    .pl-content ul[style], .pl-content ol[style] { margin-left: 1rem !important; }
}
