:root {
  --ink: #1c1917;
  --muted: #6b6258;
  --line: #d9cbb4;
  --blue: #c45c26;
  --blue-dark: #8f3a12;
  --orange: #e08a2c;
  font-family: "Iowan Old Style", "Palatino Linotype", "Songti SC", "Source Han Serif SC", "Noto Serif SC", "PingFang SC", "Microsoft YaHei", serif;
}

body {
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(196, 92, 38, 0.12), transparent 28%),
    radial-gradient(circle at 88% 0%, rgba(28, 70, 58, 0.16), transparent 32%),
    repeating-linear-gradient(0deg, transparent, transparent 27px, rgba(28, 25, 23, 0.04) 28px),
    #2a231c;
}

a { color: var(--blue-dark); }

.legal-header {
  min-height: 82px;
  background: #1c1917;
  border-bottom: 3px solid #c45c26;
}

.legal-logo {
  width: 300px;
  height: 72px;
  padding: 4px 8px;
  background: #fffdf8;
  border-radius: 10px;
}
.legal-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
}

.back-link {
  color: #f7efe1;
  border: 2px solid #cbb79a;
  border-radius: 4px;
  background: transparent;
}

.back-link:hover {
  background: #c45c26;
  border-color: #c45c26;
  color: #fffaf3;
}

.legal-main {
  width: min(960px, calc(100% - 32px));
  margin: 28px auto 56px;
  padding: clamp(26px, 5vw, 52px);
  background: #f7efe1;
  border: 3px solid #1c1917;
  border-radius: 6px;
  box-shadow: 10px 10px 0 #1c1917;
}

.legal-main h1 { margin: 0; font-size: clamp(28px, 5vw, 42px); }
.lead { margin: 14px 0 32px; color: var(--muted); line-height: 1.8; }

.meta {
  color: #1c1917;
  background: #efe4d0;
  border: 2px solid #1c1917;
  border-radius: 4px;
}

.legal-main h2 { margin: 0 0 12px; font-size: 21px; }
.legal-main h3 { margin: 20px 0 8px; font-size: 17px; }
.legal-main p, .legal-main li { color: #4a433c; line-height: 1.85; }

.notice {
  margin: 28px 0;
  padding: 16px 18px;
  background: #f4d27a;
  border: 3px solid #1c1917;
  border-left: 3px solid #1c1917;
  border-radius: 4px;
  color: #1c1917;
  box-shadow: 4px 4px 0 #1c1917;
}

.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }

.feature-card {
  padding: 18px;
  background: #fffaf3;
  border: 2px solid #1c1917;
  border-radius: 4px;
  box-shadow: 4px 4px 0 #1c1917;
}

.feature-card strong { display: block; margin-bottom: 7px; }
.feature-card p { margin: 0; font-size: 14px; }

.legal-footer {
  padding: 0 20px 36px;
  color: #d8cbb6;
  text-align: center;
  font-size: 13px;
}

.legal-footer a { color: #f4d27a; }

.account-shell {
  width: min(1060px, calc(100% - 28px));
  margin: 28px auto 56px;
}

.account-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  border: 3px solid #1c1917;
  border-radius: 6px;
  background: #f7efe1;
  box-shadow: 8px 8px 0 #1c1917;
}

.account-hero h1 { margin: 0 0 8px; font-size: 28px; }
.account-hero p { margin: 0; color: var(--muted); }

.account-avatar {
  width: 84px;
  height: 84px;
  border-radius: 6px;
  object-fit: contain;
  object-position: center;
  border: 3px solid #1c1917;
  background: #fff;
}

.account-security {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
  padding: 20px 22px;
  border: 3px solid #1c1917;
  border-radius: 6px;
  background: #fffaf3;
  box-shadow: 6px 6px 0 #c45c26;
}

.security-icon {
  display: grid;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 4px;
  background: #f4d27a;
  border: 2px solid #1c1917;
  font-size: 25px;
}

.security-copy { min-width: 0; flex: 1; }
.security-copy span { display: block; color: var(--blue-dark); font-size: 13px; font-weight: 800; }
.security-copy strong { display: block; margin-top: 4px; font-size: 19px; }
.security-copy p { margin: 5px 0 0; color: var(--muted); line-height: 1.55; }

.security-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 2px solid #1c1917;
  border-radius: 4px;
  background: #c45c26;
  color: #fffaf3;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 4px 4px 0 #1c1917;
}

.account-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.account-card {
  padding: 22px;
  border: 2px solid #1c1917;
  border-radius: 6px;
  background: #fffaf3;
  box-shadow: 4px 4px 0 #1c1917;
}

.account-card span { display: block; color: var(--muted); font-size: 13px; }
.account-card strong { display: block; margin-top: 8px; font-size: 20px; }
.account-card p { color: var(--muted); line-height: 1.7; }

.tool-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

.tool-chip {
  padding: 7px 11px;
  border: 2px solid #1c1917;
  border-radius: 4px;
  background: #efe4d0;
  color: #1c1917;
  font-size: 13px;
  font-weight: 700;
}

.account-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

.account-actions a,
.account-actions button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0 18px;
  border: 2px solid #1c1917;
  border-radius: 4px;
  background: #c45c26;
  color: #fffaf3;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 3px 3px 0 #1c1917;
}

.account-actions .secondary {
  background: #fffaf3;
  color: #1c1917;
  border: 2px solid #1c1917;
}

.account-status {
  padding: 28px;
  text-align: center;
  color: #f7efe1;
  background: #f7efe1;
  border: 3px solid #1c1917;
  border-radius: 6px;
  color: #1c1917;
  box-shadow: 8px 8px 0 #1c1917;
}

@media (max-width: 760px) {
  .account-grid { grid-template-columns: 1fr; }
  .account-hero { align-items: flex-start; }
  .account-avatar { width: 68px; height: 68px; }
  .account-security { align-items: flex-start; flex-wrap: wrap; }
  .security-copy { flex-basis: calc(100% - 64px); }
  .security-link { width: 100%; }
}

@media (max-width: 640px) {
  .legal-header { padding: 8px 16px; }
  .legal-logo { width: 220px; height: 54px; }
  .back-link { padding: 8px 12px; font-size: 13px; }
  .legal-main { margin-top: 18px; }
  .feature-grid { grid-template-columns: 1fr; }
}
