@import url("https://fonts.googleapis.com/css2?family=Fredoka:wght@500;600;700&family=Nunito:wght@400;600;700&display=swap");

:root {
  --pink: #ff3d9a; --pink-hi: #ff2088; --purple: #7a2fae;
  --ink: #4a2545; --ink-soft: #7a4f74; --line: #f6d9e9;
  --display: "Fredoka", "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
  --body: "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body); color: var(--ink); line-height: 1.65;
  background: linear-gradient(180deg, #f7cbe6 0%, #f9bfd2 22%, #ffccc0 52%, #ffe0cd 78%, #fff0e4 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  padding: 28px 18px 60px;
  min-height: 100vh;
}
.wrap { max-width: 880px; margin: 0 auto; }

.topbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 14px; margin-bottom: 20px; padding: 0; }
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 18px 9px 11px;
  background: linear-gradient(180deg, #fff 0%, #ffe9f5 100%);
  border: 3px solid #fff; border-radius: 999px;
  box-shadow: 0 8px 20px rgba(151, 44, 110, .25), inset 0 2px 0 rgba(255, 255, 255, .9);
  text-decoration: none; flex: none; border-bottom: 3px solid #fff;
}
.badge img { width: 30px; height: 30px; display: block; border-radius: 8px; object-fit: contain; }
.badge .name { font-family: var(--display); font-weight: 700; font-size: 20px; line-height: 1; }
.badge .msp { color: var(--pink); } .badge .fame { color: var(--purple); }

.legalnav { display: flex; flex-wrap: wrap; gap: 8px; }
.legalnav a {
  font-family: var(--display); font-weight: 600; font-size: 13.5px;
  padding: 7px 14px; border-radius: 999px; text-decoration: none; border: 0;
  background: rgba(255, 255, 255, .62); color: var(--ink-soft);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .9);
}
.legalnav a:hover { background: #fff; color: var(--pink-hi); }
.legalnav a.on { background: var(--pink); color: #fff; box-shadow: 0 6px 14px rgba(255, 61, 154, .35); }

.lang-switch { position: relative; z-index: 120; margin-left: auto; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px;
  border: 2px solid #fff; border-radius: 999px; background: rgba(255, 255, 255, .62); color: var(--ink);
  cursor: pointer; font: 600 14px/1 var(--display);
}
.lang-btn svg { width: 17px; height: 17px; fill: currentColor; }
.lang-menu {
  position: absolute; top: calc(100% + 6px); right: 0; min-width: 170px; max-height: 60vh; overflow-y: auto;
  list-style: none; padding: 6px; background: #fff; border-radius: 14px; box-shadow: 0 14px 34px rgba(151, 44, 110, .25);
}
.lang-menu button { display: block; width: 100%; padding: 9px 12px; border: 0; border-radius: 8px; background: transparent; color: var(--ink); cursor: pointer; text-align: left; font: 600 14.5px/1.2 var(--body); }
.lang-menu button:hover { background: #fff0f8; }
.lang-menu button[aria-selected="true"] { color: var(--pink-hi); font-weight: 700; }

.card {
  background: #fff; border: 3px solid #fff; border-radius: 26px;
  box-shadow: 0 18px 46px rgba(151, 44, 110, .20);
  padding: 38px 40px 34px; min-height: 200px;
}
h1 { font-family: var(--display); font-weight: 700; font-size: 34px; line-height: 1.15; color: var(--pink-hi); margin-bottom: 6px; letter-spacing: -.2px; }
.sub { color: var(--ink-soft); font-size: 15px; margin-bottom: 26px; }
.sub b { color: var(--ink); }

.promise { background: linear-gradient(180deg, #fff4fa 0%, #ffe9f5 100%); border: 2px solid #ffd0e7; border-radius: 18px; padding: 20px 24px; margin-bottom: 30px; }
.promise h2 { font-family: var(--display); font-weight: 700; font-size: 20px; color: var(--purple); margin-bottom: 10px; }
.promise ul { list-style: none; display: grid; gap: 8px; }
.promise li { position: relative; padding-left: 28px; font-size: 15.5px; }
.promise li::before { content: ""; position: absolute; left: 0; top: .42em; width: 16px; height: 16px; border-radius: 50%; background: var(--pink); box-shadow: inset 0 0 0 3px #fff, 0 0 0 2px rgba(255, 61, 154, .35); }

.toc { border: 2px solid var(--line); border-radius: 16px; padding: 16px 20px; margin-bottom: 26px; background: #fffafd; }
.toc h2 { font-family: var(--display); font-weight: 600; font-size: 15px; color: var(--purple); margin-bottom: 8px; text-transform: uppercase; letter-spacing: .4px; }
.toc ol { margin: 0 0 0 20px; columns: 2; column-gap: 26px; font-size: 14.5px; }
.toc li { margin-bottom: 3px; break-inside: avoid; }
.toc a { border-bottom: none; font-weight: 600; }

h2.sec { font-family: var(--display); font-weight: 600; font-size: 21px; color: var(--purple); margin: 30px 0 10px; padding-top: 22px; border-top: 2px solid var(--line); scroll-margin-top: 16px; }
h2.sec.first { border-top: none; padding-top: 0; }
h3 { font-family: var(--display); font-weight: 600; font-size: 16.5px; color: var(--ink); margin: 18px 0 6px; }
p { margin-bottom: 12px; font-size: 15.5px; }
ul.body, ol.body { margin: 0 0 14px 22px; display: grid; gap: 6px; font-size: 15.5px; }
ul.body li, ol.body li { padding-left: 4px; }
ul.body ul, ol.body ul { margin: 6px 0 0 20px; display: grid; gap: 4px; }
.card a { color: var(--pink-hi); font-weight: 700; text-decoration: none; border-bottom: 2px solid #ffd0e7; }
.card a:hover { border-bottom-color: var(--pink-hi); }
strong { color: var(--ink); }

table { width: 100%; border-collapse: collapse; margin: 6px 0 16px; font-size: 15px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--display); font-weight: 600; color: var(--purple); background: #fff6fb; width: 38%; }
tr:last-child td, tr:last-child th { border-bottom: none; }
table.cols th { width: auto; }
table.cols thead th { background: #fff0f8; }

.note { border-left: 5px solid var(--pink); background: #fff6fb; border-radius: 0 14px 14px 0; padding: 14px 18px; margin: 14px 0 18px; }
.note p:last-child { margin-bottom: 0; }

.contact { margin-top: 30px; padding: 22px 24px; border-radius: 18px; background: linear-gradient(180deg, #fff6fb 0%, #ffeef7 100%); border: 2px solid #ffd8ec; }
.contact h2 { font-family: var(--display); font-weight: 700; font-size: 19px; color: var(--purple); margin-bottom: 10px; }
.contact p { margin-bottom: 6px; }

footer { text-align: center; margin-top: 26px; color: #8a5a80; font-size: 13.5px; }
footer a { color: #8a5a80; text-decoration: none; border-bottom: 1px solid rgba(138, 90, 128, .35); }
[hidden] { display: none !important; }

@media (max-width: 620px) {
  body { padding: 18px 12px 44px; }
  .card { padding: 26px 20px 24px; border-radius: 20px; }
  h1 { font-size: 27px; }
  .toc ol { columns: 1; }
  table, tbody, th, td, tr { display: block; }
  table.cols thead { display: none; }
  th { width: auto; border-radius: 10px; margin-bottom: 2px; }
  td { border-bottom: none; padding-top: 2px; }
  tr { border-bottom: 1px solid var(--line); padding: 8px 0; }
  .lang-switch { margin-left: 0; }
}
