/* 方案 C：三個政策頁共用版型（/privacy/、/nurivamoon/privacy/、/nurivamoon/data-deletion/）。
   頁首沿用功能專頁的 fp-hero／fp-breadcrumbs 節奏；桌機為側欄加文件紙，窄版改為單欄。 */
.pp {
  --pp-ink: var(--dark-2);
  --pp-body: #3A4458;
  --pp-line: var(--border);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 840px) minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: start;
  width: 100%;
  margin: 0;
  padding: 124px 0 88px;
  color: var(--pp-body);
}

/* 全域 nav 為固定主導覽；政策頁內的 nav 需回到文件流中。 */
:where(.pp) nav { position: static; top: auto; left: auto; right: auto; height: auto; background: none; border: 0; backdrop-filter: none; -webkit-backdrop-filter: none; z-index: auto; }
body { overflow-x: clip; }

/* ── 頁首：與 .fp-hero 共用寬度、留白、麵包屑與標題規則 ── */
.pp-head { grid-column: 2; grid-row: 1; min-width: 0; padding: 0 32px; }
.pp-head .fp-breadcrumbs { margin-bottom: 24px; }
.pp-head h1 { margin: 0 0 18px; font-size: 38px; font-weight: 800; color: var(--dark-2); line-height: 1.35; letter-spacing: -0.5px; }
.pp-lead { margin: 0; font-size: 17px; line-height: 1.8; color: var(--text-muted); }
.pp-meta { display: grid; grid-template-columns: 6.5em minmax(0, 1fr); margin: 28px 0 0; padding: 0; border-top: 2px solid var(--dark-2); border-bottom: 1px solid var(--dark-2); font-size: 14.5px; line-height: 1.75; }
.pp-meta dt, .pp-meta dd { min-width: 0; margin: 0; padding: 12px 0; }
.pp-meta dt { color: var(--text-muted); font-weight: 600; }
.pp-meta dd { color: var(--pp-body); }
.pp-meta > :nth-child(n+3) { border-top: 1px solid var(--border); }
.pp-meta a, .pp-doc a:not(.btn-rose):not(.pp-choice) { color: var(--purple); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: rgba(165,69,106,.35); }
.pp-meta a:hover, .pp-doc a:not(.btn-rose):not(.pp-choice):hover { color: var(--purple-dark); text-decoration-color: currentColor; }

/* ── 桌機側欄與文件紙 ── */
.pp-switch-nav { display: none; }
.pp-side { grid-column: 1; grid-row: 2; justify-self: end; align-self: start; width: 188px; position: sticky; top: 88px; margin-top: 36px; font-size: 14px; }
.pp-policy-nav { margin-bottom: 24px; }
.pp-toc-title { margin: 0 0 8px; padding-left: 10px; color: var(--text-muted); font-size: 13px; font-weight: 700; }
.pp-policy-list { display: grid; gap: 2px; list-style: none; margin: 0; padding: 0; }
.pp-policy-list a { display: block; padding: 9px 10px; border: 1px solid transparent; border-radius: 8px; text-decoration: none; }
.pp-policy-list a[aria-current="page"] { background: white; border-color: var(--border); }
.pp-switch-product { display: block; color: var(--text-muted); font-size: 12px; line-height: 1.5; }
.pp-switch-doc { display: block; color: var(--dark-2); font-size: 14.5px; font-weight: 600; line-height: 1.5; }
.pp-policy-list a[aria-current="page"] .pp-switch-doc { color: var(--purple); font-weight: 700; }
.pp-toc { margin: 0; padding-top: 20px; border-top: 1px solid var(--border); }
.pp-toc ol { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.pp-toc a { display: grid; grid-template-columns: 1.7em minmax(0, 1fr); padding: 6px 10px; border-radius: 8px; color: var(--text-muted); line-height: 1.5; text-decoration: none; }
.pp-toc a span, .pp-toc-m a span { color: var(--purple); font-family: 'Noto Serif TC', 'Songti TC', 'PMingLiU', serif; font-weight: 600; }
.pp-toc a:hover { background: white; color: var(--dark-2); }
.pp-toc a[aria-current="true"] { background: white; color: var(--dark-2); font-weight: 700; }
.pp-paper { grid-column: 2; grid-row: 2; min-width: 0; margin: 36px 32px 0; padding: 44px 52px 48px; background: white; border: 1px solid var(--border); border-radius: 8px; }
.pp-doc { color: var(--pp-body); font-size: 16px; line-height: 1.9; }
.pp-doc p { margin: 0 0 14px; }
.pp-doc strong { color: var(--pp-ink); font-weight: 700; }
.pp-toc-m { display: none; }

/* ── 條文、摘要、流程圖 ── */
section.pp-sec { margin: 48px 0 0; padding: 0 0 0 48px; scroll-margin-top: 84px; }
section.pp-sec--first { margin-top: 0; }
section.pp-summary { padding: 20px 24px 22px; }
section.pp-choose { padding: 0; }
.pp-sec h2 { display: grid; grid-template-columns: 48px minmax(0, 1fr); margin: 0 0 14px -48px; color: var(--dark-2); font-family: 'Noto Serif TC', 'Songti TC', 'PMingLiU', serif; font-size: 22px; font-weight: 700; line-height: 1.5; }
.pp-no { color: var(--purple); }
.pp-sec h3 { margin: 24px 0 8px; color: var(--dark-2); font-size: 16.5px; font-weight: 700; line-height: 1.5; }
.pp-summary { margin: 20px 0 0; padding: 20px 24px 22px; background: #FDF8FB; border: 1px solid #EED9E3; border-radius: 10px; }
.pp-summary h2, .pp-section-label { margin: 0 0 12px; color: var(--purple); font-family: 'Noto Serif TC', 'Songti TC', 'PMingLiU', serif; font-size: 18px; font-weight: 700; line-height: 1.5; }
.pp-summary ul { display: grid; gap: 10px; list-style: none; margin: 0; padding: 0; }
.pp-summary li { position: relative; padding-left: 30px; color: var(--dark-2); font-size: 15.5px; line-height: 1.75; }
.pp-summary li::before { content: ""; position: absolute; left: 0; top: .32em; width: 19px; height: 19px; border-radius: 50%; background: var(--purple) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/13px no-repeat; }
.pp-flow { margin: 0; padding: 22px 24px 18px; border: 1px solid var(--border); border-radius: 10px; }
.pp-flow figcaption { color: var(--dark-2); font-family: 'Noto Serif TC', 'Songti TC', 'PMingLiU', serif; font-size: 18px; font-weight: 700; line-height: 1.5; }
.pp-flow ol { display: flex; align-items: flex-start; list-style: none; margin: 20px 0 0; padding: 0; }
.pp-flow li { position: relative; flex: 1 1 0; min-width: 0; padding-right: 18px; }
.pp-flow li:last-child { padding-right: 0; }
.pp-flow-icon { display: flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 50%; background: var(--purple-xlight); color: var(--purple); }
.pp-flow li:last-child .pp-flow-icon { background: var(--purple); color: white; }
.pp-flow-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pp-flow-line { position: absolute; left: 56px; right: 22px; top: 21px; height: 2px; background: var(--border); }
.pp-flow-arrow { position: absolute; top: 15px; right: 12px; width: 14px; height: 14px; fill: none; stroke: var(--border-dark); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.pp-flow strong { display: block; margin-top: 12px; color: var(--dark-2); font-size: 15.5px; line-height: 1.5; }
.pp-flow small { display: block; margin-top: 2px; color: var(--text-muted); font-size: 13.5px; line-height: 1.65; }
.pp-flow > p { display: flex; align-items: center; gap: 12px; margin: 18px 0 0; padding-top: 14px; border-top: 1px dashed var(--border-dark); color: var(--dark-2); font-size: 14.5px; font-weight: 600; line-height: 1.6; }
.pp-flow > p svg { flex: 0 0 22px; width: 22px; height: 22px; fill: none; stroke: var(--text-muted); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ── 清單、表格與共用元件 ── */
.pp-bullets { list-style: none; margin: 0 0 14px; padding: 0; }
.pp-bullets li { position: relative; margin-bottom: 6px; padding-left: 20px; }
.pp-bullets li::before { content: ""; position: absolute; left: 4px; top: .8em; width: 6px; height: 6px; border-radius: 50%; background: var(--purple-light); }
.pp-dl { margin: 6px 0 16px; border-top: 1px solid var(--border); }
.pp-dl > div { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.pp-dl dt { color: var(--dark-2); font-weight: 700; line-height: 1.8; }
.pp-dl dd { min-width: 0; margin: 0; }
.pp-dl dd small { display: block; margin-top: 4px; color: var(--text-muted); font-size: 14.5px; line-height: 1.75; }
.pp-dl--fields > div { grid-template-columns: 4em minmax(0, 1fr); align-items: baseline; }
.pp-dl--formal { border-top: 2px solid var(--dark-2); border-bottom: 1px solid var(--dark-2); }
.pp-dl--formal > div { grid-template-columns: 6.5em minmax(0, 1fr); gap: 0; padding: 0; border: 0; }
.pp-dl--formal dt, .pp-dl--formal dd { padding: 12px 0; }
.pp-dl--formal dt { color: var(--text-muted); font-weight: 600; }
.pp-dl--formal > div + div dt, .pp-dl--formal > div + div dd { border-top: 1px solid var(--border); }
.pp-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.pp-chips li { padding: 6px 12px; border-radius: 8px; background: var(--purple-xlight); color: var(--dark-2); font-size: 15px; font-weight: 600; line-height: 1.4; }
.pp-chips--muted li { background: white; border: 1px solid var(--border); font-weight: 500; }
.pp-table-wrap { max-width: 100%; margin: 6px 0 16px; overflow-x: auto; }
.pp-table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.75; }
.pp-table th, .pp-table td { padding: 11px 14px; border: 1px solid var(--border); text-align: left; vertical-align: top; }
.pp-table thead th { background: #F8F5FA; color: var(--text-muted); font-size: 13.5px; font-weight: 600; }
.pp-table tbody th { background: #FCFBFE; color: var(--dark-2); font-weight: 700; white-space: nowrap; }
.pp-split { display: grid; grid-template-columns: 1fr 1fr; margin: 8px 0 18px; overflow: hidden; background: white; border: 1px solid var(--border); border-radius: 10px; }
.pp-split > div { padding: 22px 24px 20px; }
.pp-split > div + div { border-left: 1px solid var(--border); background: var(--off-white); }
.pp-split-who { margin: 0 0 2px; color: var(--text-muted); font-size: 13.5px; }
.pp-split h3 { margin: 0 0 12px; font-size: 18px; line-height: 1.5; }
.pp-split .is-us h3 { color: var(--purple); }
.pp-split ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 14px; padding: 0; }
.pp-split li { padding: 6px 11px; border-radius: 8px; background: var(--purple-xlight); color: var(--dark-2); font-size: 14.5px; line-height: 1.4; }
.pp-split > div + div li { background: white; border: 1px solid var(--border); }
.pp-doc .pp-split-note { margin: 0; color: var(--text-muted); font-size: 14.5px; line-height: 1.75; }
.pp-path { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; vertical-align: baseline; }
.pp-path span { display: inline-block; padding: 4px 9px; border: 1px solid var(--border-dark); border-radius: 7px; background: white; color: var(--dark-2); font-size: 14.5px; font-weight: 600; line-height: 1.3; }
.pp-path i { color: var(--text-muted); font-size: 13px; font-style: normal; }
.pp-choices { overflow: hidden; list-style: none; margin: 0; padding: 0; background: white; border: 1px solid var(--border); border-radius: 10px; }
.pp-choices li + li { border-top: 1px solid var(--border); }
.pp-choice { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 18px 22px; color: inherit; text-decoration: none; transition: background-color .15s; }
.pp-choice:hover { background: var(--bg-soft); }
.pp-choice-title { display: block; color: var(--dark-2); font-size: 17px; font-weight: 700; line-height: 1.5; }
.pp-choice-desc { display: block; margin-top: 2px; color: var(--text-muted); font-size: 14.5px; line-height: 1.7; }
.pp-choice-go { color: var(--purple); font-size: 14px; font-weight: 600; white-space: nowrap; }
.pp-choices li:first-child .pp-choice { background: var(--purple-xlight); }
.pp-choices li:first-child .pp-choice:hover { background: #FAE6EE; }
.pp-choices li:first-child .pp-choice-title { color: var(--purple-dark); }
.pp-choose { margin: 0 0 48px; }
.pp-section-label { color: var(--dark-2); }
.pp-steps { counter-reset: ppstep; list-style: none; margin: 8px 0 22px; padding: 0; }
.pp-steps li { position: relative; padding: 0 0 18px 46px; counter-increment: ppstep; }
.pp-steps li::before { position: absolute; top: 1px; left: 0; width: 30px; height: 30px; border: 1.5px solid var(--purple); border-radius: 50%; background: white; color: var(--purple); content: counter(ppstep); font-size: 14px; font-weight: 700; line-height: 27px; text-align: center; }
.pp-steps li:not(:last-child)::after { position: absolute; top: 34px; bottom: 2px; left: 15px; width: 1.5px; background: var(--border-dark); content: ""; }
.pp-steps strong, .pp-steps span { display: block; line-height: 1.6; }
.pp-steps span { color: var(--text-muted); font-size: 15px; }
.pp-mailbox { margin: 4px 0 18px; padding: 22px 24px; border: 1px solid var(--border); border-radius: 10px; background: white; }
.pp-mailbox h3 { margin: 0 0 8px; }
.pp-mailbox .pp-bullets { margin-bottom: 18px; }
.pp-mailbox-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.pp-mailbox-alt { color: var(--text-muted); font-size: 14.5px; line-height: 1.7; }
.pp-callout { margin: 0 0 14px; padding: 13px 16px; border-radius: 8px; background: #F8F5FA; color: var(--pp-body); font-size: 15.5px; line-height: 1.85; }
.pp-contact { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 24px; margin-top: 52px; padding: 26px 0 0; border-top: 1px solid var(--border); }
.pp-contact h2 { margin: 0; color: var(--dark-2); font-size: 19px; font-weight: 800; line-height: 1.5; }
.pp-doc .pp-contact p { grid-column: 1; margin: 0; color: var(--text-muted); font-size: 15px; line-height: 1.75; }
.pp-contact .btn-rose { grid-column: 2; grid-row: 1 / span 2; white-space: nowrap; }
.pp a:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { .pp * { transition: none !important; } }

/* ── 1239px 以下：收起側欄，將切換列移到頁首下方 ── */
@media (max-width: 1239px) {
  .pp { grid-template-columns: minmax(0, 840px); justify-content: center; }
  .pp-head, .pp-switch-nav, .pp-paper { grid-column: 1; }
  .pp-head { grid-row: 1; }
  .pp-side { display: none; }
  .pp-switch-nav { display: block; grid-row: 2; min-width: 0; margin-top: 20px; overflow-x: auto; padding: 0 32px; }
  .pp-switch-mobile { display: flex; }
  .pp-switch { display: flex; flex-wrap: nowrap; gap: 8px; width: max-content; min-width: 100%; margin: 0; padding: 0; list-style: none; }
  .pp-switch a { display: block; flex: 0 0 auto; padding: 8px 12px; border: 1px solid transparent; border-radius: 8px; line-height: 1.45; text-decoration: none; }
  .pp-switch a[aria-current="page"] { border-color: var(--border); background: white; }
  .pp-switch a[aria-current="page"] .pp-switch-doc { color: var(--purple); }
  .pp-switch-product { font-size: 11.5px; }
  .pp-switch-doc { font-size: 14px; }
  .pp-paper { grid-row: 3; margin-top: 20px; padding: 36px 32px 40px; }
  .pp-toc-m { display: block; margin: 0 0 20px; border: 1px solid var(--border); border-radius: 10px; background: #FCFBFE; font-size: 15px; }
  .pp-toc-m summary { padding: 13px 16px; color: var(--dark-2); cursor: pointer; font-weight: 700; list-style-position: inside; }
  .pp-toc-m ol { list-style: none; margin: 0; padding: 0 16px 10px; }
  .pp-toc-m a { display: grid; grid-template-columns: 1.8em minmax(0, 1fr); padding: 9px 0; border-top: 1px solid #EFEAF3; color: var(--dark-2); line-height: 1.5; text-decoration: none; }
  .pp-toc-m + .pp-flow, .pp-toc-m + .pp-summary { margin-top: 0; }
}

/* ── 768px 以下：沿用功能專頁手機頁首，文件紙滿版 ── */
@media (max-width: 768px) {
  .pp { padding: 96px 0 64px; }
  .pp-head { padding: 0 24px; }
  .pp-head h1 { font-size: 28px; }
  .pp-switch-nav { padding: 0 24px; }
  .pp-paper { box-sizing: border-box; width: 100%; margin: 20px 0 0; padding: 24px; border: 0; border-top: 1px solid var(--border); border-radius: 0; }
  .pp-doc { font-size: 16px; }
  .pp-meta { grid-template-columns: 6.5em minmax(0, 1fr); font-size: 14px; }
  .pp-meta dt, .pp-meta dd { padding: 10px 0; }
  .pp-flow { padding: 18px 16px 16px; }
  .pp-flow ol { display: block; margin-top: 16px; }
  .pp-flow li { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: center; gap: 14px; padding: 0 0 18px; }
  .pp-flow li:last-child { padding-bottom: 0; }
  .pp-flow-icon { grid-column: 1; grid-row: 1 / span 2; width: 40px; height: 40px; }
  .pp-flow-icon svg { width: 20px; height: 20px; }
  .pp-flow strong, .pp-flow small { grid-column: 2; }
  .pp-flow strong { margin: 0; }
  .pp-flow-line { top: 44px; bottom: 4px; left: 19px; right: auto; width: 2px; height: auto; }
  .pp-flow-arrow { display: none; }
  .pp-flow > p { align-items: flex-start; gap: 10px; margin-top: 16px; font-size: 14px; }
  section.pp-sec { margin-top: 40px; padding-left: 48px; }
  .pp-sec h2 { grid-template-columns: 48px minmax(0, 1fr); margin-left: -48px; font-size: 21px; }
  .pp-summary { padding: 18px 18px 20px; }
  .pp-summary li { padding-left: 29px; font-size: 15.5px; }
  .pp-dl > div, .pp-dl--fields > div { grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 14px 0; }
  .pp-dl--fields > div { gap: 8px; }
  .pp-dl--formal > div { grid-template-columns: 6.5em minmax(0, 1fr); gap: 0; padding: 0; }
  .pp-dl--formal dt, .pp-dl--formal dd { padding: 10px 0; }
  .pp-table { font-size: 14px; }
  .pp-table th, .pp-table td { padding: 9px 10px; }
  .pp-table tbody th { width: 42%; white-space: normal; }
  .pp-split { grid-template-columns: 1fr; }
  .pp-split > div + div { border-top: 1px solid var(--border); border-left: 0; }
  .pp-choice { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 16px 18px; }
  .pp-contact { grid-template-columns: 1fr; }
  .pp-contact .btn-rose { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 10px; }
  .pp-choose { margin-bottom: 40px; }
}
