/* policies.incodesmile.com — simple static stylesheet, no JS anywhere */

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #1f1f1f;
  background: #fff;
  overflow-wrap: break-word;
}

main {
  max-width: 860px;
  margin: 0 auto;
  padding: 24px 20px 64px;
}

h1 { font-size: 28px; line-height: 1.3; margin: 16px 0 12px; }
h2 { font-size: 22px; margin: 40px 0 12px; }
h3 { font-size: 18px; margin: 28px 0 10px; }
h4 { font-size: 16px; margin: 22px 0 8px; }
h5 { font-size: 15px; margin: 18px 0 8px; }

[id] { scroll-margin-top: 16px; }

p { margin: 0 0 14px; }

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

a { color: #0a58c2; text-decoration: underline; }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 15px;
}
th, td {
  border: 1px solid #ccc;
  padding: 8px 10px;
  vertical-align: top;
  text-align: left;
}
th { background: #ececec; }

blockquote {
  margin: 0 0 14px;
  padding: 4px 16px;
  border-left: 3px solid #ccc;
  color: #444;
}

hr { border: 0; border-top: 1px solid #e3e3e3; margin: 32px 0; }

.last-modified { font-style: italic; color: #555; margin-bottom: 20px; }

.toc {
  background: #f7f7f7;
  border: 1px solid #e3e3e3;
  border-radius: 8px;
  padding: 20px 24px;
  margin: 24px 0 36px;
}
.toc h2 { margin: 0 0 10px; font-size: 18px; }
.toc ol, .toc ul { margin: 0; padding-left: 22px; }
.toc li { margin-bottom: 6px; }

/* Home page */
.home h1 {
  font-size: 44px;
  text-align: center;
  margin: 48px 0 180px;
}

.page-list { font-size: 18px; }
.page-list li { margin-bottom: 12px; }

/* Language switcher (flags are inline SVGs, plain links, no JS) */
.lang-switcher {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 24px;
  padding: 14px 0;
  margin-bottom: 16px;
  border-bottom: 1px solid #e3e3e3;
}
.lang-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  line-height: 1;
  color: inherit;
  text-decoration: none;
}
a.lang-option:hover span { text-decoration: underline; }
.lang-option.current { font-weight: 700; }
.lang-flag {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Legal tables can be wide; let them scroll sideways on small screens */
@media (max-width: 700px) {
  table {
    display: block;
    overflow-x: auto;
  }
}
