/* PhotoRestore Legal Pages
 * © 2026 HONGKONG HDTP SOFTWARE LIMITED
 */

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  padding: 0;
  background: #f4f7fa;
  color: #1d2433;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
               "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: #1634cf; text-decoration: underline; }
a:hover { color: #0a1aa6; }

/* ===== Header (dark hero) ===== */
.hero {
  background: linear-gradient(180deg, #0a0e17 0%, #162be0 100%);
  color: #fff;
  padding: 32px 20px 28px;
  text-align: center;
}
.hero .crumb {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}
.hero .crumb a {
  color: #fff;
  text-decoration: underline;
  font-weight: 600;
}
.hero .crumb .sep { margin: 0 6px; opacity: 0.5; }
.hero .emoji {
  font-size: 44px;
  line-height: 1;
  margin: 8px 0 12px;
}
.hero h1 {
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 6px;
  letter-spacing: 0.01em;
}
.hero .product {
  color: #82b7fc;
  font-size: 15px;
  margin: 0 0 14px;
}
.hero .meta {
  font-size: 12px;
  color: rgba(255,255,255,0.65);
  margin: 0;
}
.hero .meta + .meta { margin-top: 2px; }

/* ===== Lang switch ===== */
.lang-switch {
  display: flex;
  justify-content: center;
  gap: 0;
  background: #fff;
  border-bottom: 1px solid #e5e9f0;
}
.lang-switch a {
  flex: 0 0 auto;
  padding: 10px 22px;
  font-size: 13px;
  color: #5b6478;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.lang-switch a.active {
  color: #1634cf;
  font-weight: 600;
  border-bottom-color: #1634cf;
}

/* ===== Main content ===== */
.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 28px 22px 56px;
}

.callout {
  background: #e6f0ff;
  border-left: 4px solid #1634cf;
  padding: 14px 16px;
  border-radius: 6px;
  margin: 18px 0 24px;
  font-size: 14.5px;
  color: #12168d;
}
.callout strong { color: #0a0e8a; }

.notice {
  background: #fefaa8;
  border-left: 4px solid #c79a00;
  padding: 12px 16px;
  border-radius: 6px;
  margin: 12px 0 18px;
  color: #4a3a0d;
  font-size: 14px;
}
.notice strong { color: #2a2200; }

.danger {
  background: #fee8eb;
  border-left: 4px solid #c92a3b;
  padding: 12px 16px;
  border-radius: 6px;
  margin: 12px 0 18px;
  color: #5a0e16;
  font-size: 14.5px;
}

h2 {
  font-size: 20px;
  font-weight: 700;
  color: #0a0e17;
  margin: 32px 0 12px;
  padding-top: 4px;
}
h3 {
  font-size: 16px;
  font-weight: 600;
  color: #1118c4;
  margin: 22px 0 8px;
}

p { margin: 0 0 12px; }

ul, ol {
  padding-left: 22px;
  margin: 8px 0 16px;
}
li { margin-bottom: 6px; }

.toc {
  background: #fff;
  border: 1px solid #e5e9f0;
  border-radius: 8px;
  padding: 14px 16px 14px 36px;
  margin: 8px 0 24px;
}
.toc-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #414d65;
  margin: -2px 0 8px -16px;
  list-style: none;
}
.toc li { font-size: 14px; color: #1634cf; margin-bottom: 4px; }

/* ===== Footer ===== */
.foot {
  border-top: 1px solid #e5e9f0;
  margin-top: 32px;
  padding-top: 18px;
  text-align: center;
  font-size: 13px;
  color: #5b6478;
}
.foot a { color: #1634cf; }
.foot p { margin: 4px 0; }

/* ===== Mobile ===== */
@media (max-width: 600px) {
  body { font-size: 15px; }
  .hero { padding: 24px 16px 22px; }
  .hero h1 { font-size: 22px; }
  .hero .emoji { font-size: 36px; }
  .wrap { padding: 22px 16px 44px; }
  h2 { font-size: 18px; margin-top: 28px; }
  h3 { font-size: 15px; }
}

/* ===== Dark mode auto ===== */
@media (prefers-color-scheme: dark) {
  body { background: #0f1218; color: #d8dce5; }
  .lang-switch { background: #161b25; border-bottom-color: #232938; }
  .lang-switch a { color: #8b94a8; }
  .lang-switch a.active { color: #82b7fc; border-bottom-color: #82b7fc; }
  h2 { color: #ffffff; }
  h3 { color: #82b7fc; }
  a { color: #82b7fc; }
  .callout { background: #142039; color: #c4d3f2; border-left-color: #82b7fc; }
  .callout strong { color: #ffffff; }
  .notice { background: #2b2611; color: #e6dca0; border-left-color: #c79a00; }
  .notice strong { color: #fff5c0; }
  .danger { background: #2a141a; color: #f0c4c9; border-left-color: #c92a3b; }
  .toc { background: #161b25; border-color: #232938; }
  .toc-title { color: #8b94a8; }
  .toc li { color: #82b7fc; }
  .foot { border-top-color: #232938; color: #8b94a8; }
}
