/* Shared styles for the public Support & Privacy pages (store listing URLs).
   Colours mirror the Flutter app theme (lib/core/styles/app_colors.dart). */
:root {
  --primary: #7658F7;
  --primary-dark: #5B3FE0;
  --accent: #F2EFFF;
  --accent-soft: #FAFBFF;
  --bg: #F5F6F8;
  --surface: #FFFFFF;
  --text: #101828;
  --text-2: #475467;
  --text-3: #667085;
  --border: #EAECF0;
  --green: #1FC15E;
  --green-bg: #F3FBF2;
  --radius: 16px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Avenir', 'Avenir Next', 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.topbar { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 10; }
.topbar-inner { max-width: 960px; margin: 0 auto; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-logo { width: 36px; height: 36px; border-radius: 10px; background: var(--primary); display: grid; place-items: center; }
.brand-logo svg { width: 20px; height: 20px; }
.nav { display: flex; gap: 6px; }
.nav a { padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--text-2); }
.nav a:hover { background: var(--accent); color: var(--primary); text-decoration: none; }
.nav a.active { background: var(--accent); color: var(--primary); }

.hero { background: linear-gradient(135deg, var(--primary) 0%, #9B84FF 100%); color: #fff; padding: 56px 16px 72px; text-align: center; }
.hero h1 { font-size: clamp(28px, 5vw, 40px); font-weight: 800; line-height: 1.2; margin-bottom: 10px; }
.hero p { font-size: 17px; opacity: .92; max-width: 620px; margin: 0 auto; }
.hero .meta { margin-top: 14px; font-size: 14px; opacity: .85; }

.container { max-width: 960px; margin: -40px auto 0; padding: 0 16px 48px; position: relative; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; margin-bottom: 20px; box-shadow: 0 4px 16px rgba(16, 24, 40, .04); }
.card h2 { font-size: 22px; font-weight: 800; margin-bottom: 12px; }
.card h3 { font-size: 17px; font-weight: 700; margin: 18px 0 6px; }
.card p, .card li { color: var(--text-2); }
.card p + p { margin-top: 10px; }
.card ul, .card ol { padding-left: 22px; margin-top: 8px; }
.card li { margin-bottom: 6px; }
.card strong { color: var(--text); }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.contact-tile { background: var(--accent-soft); border: 1px solid var(--border); border-radius: 14px; padding: 20px; }
.contact-tile .icon { width: 44px; height: 44px; border-radius: 12px; background: var(--accent); color: var(--primary); display: grid; place-items: center; margin-bottom: 12px; }
.contact-tile .icon svg { width: 22px; height: 22px; }
.contact-tile h3 { margin: 0 0 4px; font-size: 16px; }
.contact-tile p { font-size: 14px; }
.contact-tile a { font-weight: 700; word-break: break-word; }

.pill { display: inline-block; background: var(--accent); color: var(--primary); font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; margin-bottom: 8px; }

details { border: 1px solid var(--border); border-radius: 12px; padding: 14px 18px; margin-top: 10px; background: var(--surface); }
details[open] { background: var(--accent-soft); }
summary { cursor: pointer; font-weight: 700; color: var(--text); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; color: var(--primary); font-size: 20px; line-height: 1; }
details[open] summary::after { content: '–'; }
details p { margin-top: 10px; }

.callout { background: var(--accent); border-left: 4px solid var(--primary); border-radius: 10px; padding: 14px 18px; margin-top: 14px; color: var(--text); }
.callout.green { background: var(--green-bg); border-left-color: var(--green); }

table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 14px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; color: var(--text-2); }
th { background: var(--accent-soft); color: var(--text); font-weight: 700; }
.table-wrap { overflow-x: auto; }

.toc { display: flex; flex-wrap: wrap; gap: 8px; }
.toc a { background: var(--accent-soft); border: 1px solid var(--border); padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; }

footer { text-align: center; padding: 28px 16px 36px; color: var(--text-3); font-size: 14px; }
footer a { margin: 0 8px; }

@media (max-width: 560px) {
  .card { padding: 20px; }
  .nav a { padding: 6px 10px; font-size: 13px; }
  .brand { font-size: 18px; }
}
