/* Privacy section in the app's style: the in-app privacy page (RichTextView, section cards
   with colored icon tiles) in a phone, and the Settings rows (使用统计 toggle, 隐私政策). */

.ios {
  --i-bg: #F2F2F7; --i-card: #FFFFFF; --i-label: #000; --i-label2: rgba(60, 60, 67, .6); --i-sep: rgba(60, 60, 67, .29); --i-link: #2F7FEA;
}
@media (prefers-color-scheme: dark) {
  .ios { --i-bg: #000; --i-card: #1C1C1E; --i-label: #FFF; --i-label2: rgba(235, 235, 245, .6); --i-sep: rgba(84, 84, 88, .65); }
}
.privacy-layout { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .privacy-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; } }

/* The app's section card (RichTextView.section) */
.rt-card { border-radius: 20px; padding: 16px; background: var(--i-card); color: var(--i-label); }
.rt-head { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 600; margin-bottom: 10px; }
.rt-tile { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: #fff; flex: none; }
.rt-tile svg { width: 15px; height: 15px; fill: currentColor; stroke: none; }
.rt-card p { margin: 0 0 8px; font-size: 15px; line-height: 1.45; }
.rt-card p:last-child { margin-bottom: 0; }
.rt-li { display: flex; gap: 8px; align-items: baseline; font-size: 15px; line-height: 1.45; margin-bottom: 8px; }
.rt-li:last-child { margin-bottom: 0; }
.rt-li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--dot, var(--i-label2)); flex: none; transform: translateY(-3px); }
.rt-card b { font-weight: 700; }
.rt-card a { color: var(--i-link); }

/* Settings-style group (inset grouped list) */
.set-stack { display: flex; flex-direction: column; gap: 16px; padding: 20px; border-radius: 32px; background: var(--i-bg); box-shadow: var(--shadow); color: var(--i-label); }
.set-title { font-size: 13px; color: var(--i-label2); text-transform: uppercase; margin: 0 16px -8px; letter-spacing: .02em; }
.set-group { border-radius: 12px; background: var(--i-card); overflow: hidden; }
.set-row { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 16px; font-size: 17px; color: inherit; text-decoration: none; position: relative; }
.set-row + .set-row::before { content: ""; position: absolute; left: 57px; right: 0; top: 0; height: .5px; background: var(--i-sep); }
.set-row .set-tile { width: 29px; height: 29px; border-radius: 7px; display: grid; place-items: center; color: #fff; flex: none; }
.set-row .set-tile svg { width: 17px; height: 17px; fill: currentColor; }
.set-row .chev { margin-left: auto; color: var(--i-label2); opacity: .6; font-size: 20px; }
.set-row .val { margin-left: auto; color: var(--i-label2); }
.set-foot { font-size: 13px; line-height: 1.4; color: var(--i-label2); margin: -8px 16px 0; }
.set-switch { margin-left: auto; width: 51px; height: 31px; border-radius: 16px; border: 0; padding: 0; background: rgba(120, 120, 128, .32); position: relative; cursor: pointer; transition: background .25s; flex: none; }
.set-switch::after { content: ""; position: absolute; left: 2px; top: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, .15), 0 3px 1px rgba(0, 0, 0, .06); transition: transform .25s; }
.set-switch[aria-checked="true"] { background: #34C759; }
.set-switch[aria-checked="true"]::after { transform: translateX(20px); }
.set-switch:focus-visible { outline: 3px solid var(--wt); outline-offset: 2px; }
.set-state { font-size: 13px; line-height: 1.4; margin: -8px 16px 0; font-weight: 600; color: #248A3D; }
.set-state.off { color: var(--i-label2); }
@media (prefers-color-scheme: dark) { .set-state { color: #30D158; } }
.promise-cards { display: grid; gap: 12px; }

/* The privacy page inside the phone */
.pp { position: absolute; left: 0; top: 0; width: 393px; height: 852px; transform-origin: 0 0; overflow: hidden; background: var(--i-bg); color: var(--i-label);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", sans-serif; -webkit-user-select: none; user-select: none; }
.pp-status { position: absolute; left: 0; right: 0; top: 0; height: 54px; z-index: 3; display: flex; align-items: center; justify-content: space-between; padding: 6px 30px 0 44px; font-size: 17px; font-weight: 600; background: var(--i-bg); }
.pp-status svg { height: 13px; fill: currentColor; }
.pp-island { position: absolute; left: 50%; top: 11px; width: 126px; height: 37px; margin-left: -63px; border-radius: 20px; background: #000; z-index: 4; }
.pp-home { position: absolute; left: 50%; bottom: 8px; width: 139px; height: 5px; margin-left: -70px; border-radius: 3px; background: var(--i-label); z-index: 4; }
.pp-nav { position: absolute; left: 0; right: 0; top: 54px; height: 44px; z-index: 3; display: flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 600;
  background: color-mix(in srgb, var(--i-bg) 85%, transparent); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border-bottom: .5px solid var(--i-sep); }
.pp-nav .back { position: absolute; left: 8px; display: flex; align-items: center; gap: 2px; color: var(--i-link); font-weight: 400; }
.pp-nav .back svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.pp-scroll { position: absolute; left: 0; right: 0; top: 98px; bottom: 0; overflow-y: auto; padding: 20px 20px 48px; display: flex; flex-direction: column; gap: 14px; scrollbar-width: thin; }
.pp-head { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.pp-head img { width: 48px; height: 48px; border-radius: 12px; }
.pp-head small { display: block; font-size: 12px; font-weight: 600; color: var(--i-label2); }
.pp-head b { display: block; font-size: 22px; font-weight: 900; }
.pp-p { margin: 0; font-size: 17px; line-height: 1.4; }
.pp .rt-card { user-select: text; }
