/* LuckMap Legal Pages — Common Styles */

:root {
  --color-bg: #fafaf7;
  --color-text: #1a1a2e;
  --color-text-muted: #555;
  --color-accent: #7c3aed;
  --color-accent-light: #a78bfa;
  --color-gold: #d4a017;
  --color-border: #e5e5e0;
  --color-card: #ffffff;
  --color-warning-bg: #fef3c7;
  --color-warning-border: #f59e0b;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: Georgia, 'Times New Roman', serif;
  --max-width: 760px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* Header */
.legal-header {
  background: linear-gradient(135deg, #1a1033 0%, #2d1b4e 100%);
  color: white;
  padding: 2rem 1.5rem;
  text-align: center;
}

.legal-header .brand {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #ffd700, #ff6b9d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.legal-header h1 {
  font-size: 2rem;
  font-weight: 600;
  margin-top: 0.5rem;
}

.legal-header .meta {
  margin-top: 0.75rem;
  opacity: 0.7;
  font-size: 0.9rem;
}

/* Container */
.legal-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

/* Table of Contents */
.toc {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2.5rem;
}

.toc h2 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.toc ol {
  padding-left: 1.5rem;
  font-size: 0.95rem;
}

.toc li {
  margin-bottom: 0.4rem;
}

.toc a {
  color: var(--color-accent);
  text-decoration: none;
}

.toc a:hover { text-decoration: underline; }

/* Sections */
section {
  margin-bottom: 2.5rem;
  scroll-margin-top: 1rem;
}

h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-accent);
}

h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

p {
  margin-bottom: 1rem;
  color: var(--color-text);
}

p.intro {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

ul, ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.4rem;
}

strong {
  font-weight: 600;
  color: var(--color-text);
}

a {
  color: var(--color-accent);
  text-decoration: underline;
}

a:hover { color: var(--color-accent-light); }

/* Notice/Warning Box */
.notice {
  background: var(--color-warning-bg);
  border-left: 4px solid var(--color-warning-border);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  border-radius: 4px;
}

.notice strong { color: #92400e; }

.info-box {
  background: #eff6ff;
  border-left: 4px solid #3b82f6;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  border-radius: 4px;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.95rem;
}

th, td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

th {
  background: var(--color-card);
  font-weight: 600;
}

/* Definition list */
dl { margin-bottom: 1rem; }
dt {
  font-weight: 600;
  margin-top: 0.75rem;
}
dd {
  padding-left: 1.5rem;
  color: var(--color-text-muted);
}

/* Contact card */
.contact-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.contact-card h3 { margin-top: 0; }

/* Footer */
.legal-footer {
  background: #1a1a2e;
  color: white;
  padding: 2rem 1.5rem;
  text-align: center;
  font-size: 0.9rem;
}

.legal-footer a {
  color: var(--color-gold);
  text-decoration: none;
  margin: 0 0.5rem;
}

.legal-footer a:hover { text-decoration: underline; }

.legal-footer .copyright {
  margin-top: 1rem;
  opacity: 0.6;
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 640px) {
  body { font-size: 15px; }
  .legal-header { padding: 1.5rem 1rem; }
  .legal-header h1 { font-size: 1.5rem; }
  .legal-content { padding: 2rem 1rem 3rem; }
  h2 { font-size: 1.25rem; }
  h3 { font-size: 1.05rem; }
  table { font-size: 0.85rem; }
  th, td { padding: 0.5rem 0.6rem; }
}

/* Print styles */
@media print {
  .legal-header, .legal-footer, .toc { display: none; }
  body { font-size: 11pt; color: black; background: white; }
  h2 { page-break-after: avoid; }
  section { page-break-inside: avoid; }
}
