/* MykaPro — the legal pages: Privacy Policy (privacy.php), Terms of Service (terms.php) and
   Cookie Policy (cookies.php) share this file and assets/js/privacy-toc.js. A quiet introduction,
   then the contents list beside the document text. Loaded after styles.css and written with its
   tokens. The document keeps a fixed reading size (17px, about 75 characters a line). */

.pv { background: var(--c-bg); }
.pv-stage { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(4rem, 8vw, 7rem); }

/* introduction */
.pv-eyebrow { margin: 0; font-family: var(--f-mono); font-size: var(--t-xs); letter-spacing: 0.04em; text-transform: uppercase; color: var(--c-accent); }
.pv-title { margin: 1rem 0 0; font-size: var(--t-mega); line-height: 1.04; font-weight: 500; letter-spacing: -0.025em; }
.pv-lead { max-width: 640px; margin: 1.25rem 0 0; font-size: max(17px, var(--t-m)); line-height: 1.6; color: var(--c-muted); }
.pv-updated { margin: 1.25rem 0 0; font-size: var(--t-s); color: var(--c-muted); }
.pv-updated b { font-weight: 500; color: var(--c-ink); }

/* the contents list and the document, side by side under a hairline */
.pv-body { display: grid; grid-template-columns: 232px minmax(0, 1fr); column-gap: clamp(3rem, 6vw, 6rem); align-items: start; margin-top: 3.5rem; padding-top: 3rem; border-top: 1px solid var(--c-line); }

.pv-toc { position: sticky; top: 6.5rem; max-height: calc(100vh - 8rem); overflow-y: auto; margin-left: -6px; padding: 0 6px 4px; scrollbar-width: thin; }
.pv-toc-title { margin: 0 0 14px; font-family: var(--f-mono); font-size: var(--t-xs); letter-spacing: 0.04em; text-transform: uppercase; color: var(--c-ink); }
.pv-toc ol { margin: 0; padding: 0; list-style: none; border-left: 1px solid var(--c-line); }
.pv-toc a { display: flex; gap: 10px; margin-left: -1px; padding: 6px 0 6px 16px; border-left: 2px solid transparent; font-size: var(--t-s); line-height: 1.4; color: var(--c-muted); transition: color 0.25s, translate 0.25s, border-color 0.25s; }
@media (hover: hover) { .pv-toc a:hover { translate: 2px 0; } }
.pv-toc a span { flex: none; min-width: 18px; font-family: var(--f-mono); font-size: var(--t-xs); font-variant-numeric: tabular-nums; }
@media (hover: hover) { .pv-toc a:hover { color: var(--c-ink); border-left-color: var(--c-line-strong); } }
.pv-toc a[aria-current] { border-left-color: var(--c-accent); font-weight: 500; color: var(--c-ink); }
.pv-toc a[aria-current] span { color: var(--c-accent); }

/* the phone and tablet version of the contents: a closed "Contents" disclosure above the document */
.pv-contents { display: none; }

/* the policy text */
.pv-doc { max-width: 780px; }
.pv-doc section + section { margin-top: 3.5rem; padding-top: 3rem; border-top: 1px solid var(--c-line); }
.pv-num { display: block; margin-bottom: 10px; font-family: var(--f-mono); font-size: var(--t-xs); letter-spacing: 0.04em; color: var(--c-accent); }
.pv-doc h2 { margin: 0; font-size: var(--t-l); line-height: 1.2; font-weight: 500; letter-spacing: -0.015em; }
.pv-doc h3 { margin: 2rem 0 0; font-size: var(--t-m); line-height: 1.3; font-weight: 500; }
.pv-doc p, .pv-doc li { font-size: 17px; line-height: 1.7; color: var(--c-ink); }
.pv-doc p { margin: 1rem 0 0; }
.pv-doc h2 + p { margin-top: 1.1rem; }
.pv-doc ul { margin: 0.9rem 0 0; padding-left: 22px; }
.pv-doc li + li { margin-top: 6px; }
.pv-doc li::marker { color: var(--c-muted); }
.pv-doc strong { font-weight: 500; }
.pv-doc a {
  color: var(--c-accent); text-decoration: none;
  background: linear-gradient(currentColor 0 0) left bottom / 100% 1px no-repeat;
  transition: background-size 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}
@media (hover: hover) { .pv-doc a:hover { background-size: 100% 0.35em; } }
.pv-doc a:focus-visible { background-size: 100% 0.35em; }

/* A point the owner still has to confirm before the policy is published: a gold rule and a label, easy to find
   (search the page for "pv-confirm") and to delete once the fact is settled. */
.pv-confirm { margin: 1.25rem 0 0; padding: 2px 0 2px 16px; border-left: 3px solid #C8A24B; font-size: 15px !important; line-height: 1.6 !important; color: var(--c-muted) !important; }
.pv-confirm b { display: block; font-family: var(--f-mono); font-size: 11px; line-height: 1.6; font-weight: 400; letter-spacing: 0.1em; text-transform: uppercase; color: #7A6018; }
.pv-updated .pv-pending { padding: 1px 6px; border: 1px dashed #C8A24B; border-radius: var(--radius); color: #7A6018; }

/* A cookie table (cookies.php): hairline rows on wider screens, one block per cookie on phones (below) */
.pv-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pv-table { width: 100%; margin: 1.1rem 0 0; border-collapse: collapse; font-size: 15px; line-height: 1.55; }
.pv-table th, .pv-table td { padding: 14px 20px 14px 0; border-bottom: 1px solid var(--c-line); text-align: left; vertical-align: top; }
.pv-table th:last-child, .pv-table td:last-child { padding-right: 0; }
.pv-table thead th { padding-top: 0; padding-bottom: 10px; border-bottom-color: var(--c-line-strong); font-family: var(--f-mono); font-size: var(--t-xs); font-weight: 400; letter-spacing: 0.04em; text-transform: uppercase; color: var(--c-muted); }
.pv-table thead th:first-child { width: 22%; }
.pv-table thead th:nth-child(3) { width: 18%; }
.pv-table thead th:nth-child(4) { width: 20%; }
.pv-table tbody th { font-weight: 400; }
.pv-table code { font-family: var(--f-mono); font-size: 14px; color: var(--c-ink); overflow-wrap: anywhere; }

/* MykaPro's contact details in the last section: label, then the details, between hairlines */
.pv-doc address { font-style: normal; }
.pv-reach { margin: 1.5rem 0 0; }
.pv-reach div { display: grid; grid-template-columns: 96px minmax(0, 1fr); column-gap: 16px; padding: 14px 0; border-top: 1px solid var(--c-line); }
.pv-reach div:last-child { border-bottom: 1px solid var(--c-line); }
.pv-reach dt { padding-top: 3px; font-family: var(--f-mono); font-size: var(--t-xs); letter-spacing: 0.04em; text-transform: uppercase; color: var(--c-muted); }
.pv-reach dd { grid-column: 2; margin: 0; font-size: 17px; line-height: 1.6; }
.pv-reach dd a { display: inline-block; padding-block: 4px; font-weight: 500; text-decoration: none; }
@media (hover: hover) { .pv-reach dd a:hover { color: var(--c-accent); } }

@media (max-width: 1100px) {
  .pv-body { grid-template-columns: 200px minmax(0, 1fr); column-gap: 3rem; margin-top: 2.5rem; padding-top: 2.5rem; }
  .pv-toc { top: 6rem; max-height: calc(100vh - 7.5rem); }
}

/* Below 1024px the contents list leaves the side and becomes the "Contents" disclosure above the text */
@media (max-width: 1023px) {
  .pv-body { grid-template-columns: minmax(0, 1fr); max-width: 780px; margin-left: auto; margin-right: auto; padding-top: 0; border-top: 0; }
  .pv-head { max-width: 780px; margin: 0 auto; }
  .pv-toc { display: none; }
  .pv-contents { display: block; margin-bottom: 2.5rem; border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); }
  .pv-contents summary { display: flex; align-items: center; justify-content: space-between; min-height: 56px; font-size: 16px; font-weight: 500; cursor: pointer; list-style: none; }
  .pv-contents summary::-webkit-details-marker { display: none; }
  .pv-sign { position: relative; width: 16px; height: 16px; color: var(--c-accent); }
  .pv-sign::before, .pv-sign::after { content: ""; position: absolute; left: 0; top: 50%; width: 16px; height: 1.5px; border-radius: 1px; background: currentColor; transition: transform 0.2s ease; }
  .pv-sign::after { transform: rotate(90deg); }
  .pv-contents[open] .pv-sign::after { transform: rotate(180deg); }
  .pv-contents ol { margin: 0 0 12px; padding: 0; list-style: none; }
  .pv-contents a { display: flex; gap: 12px; padding: 10px 0; font-size: 16px; line-height: 1.4; }
  .pv-contents a span { flex: none; min-width: 20px; font-family: var(--f-mono); font-size: var(--t-s); font-variant-numeric: tabular-nums; color: var(--c-muted); }
}

/* Phones (699px and below) */
@media (max-width: 699px) {
  .pv-body { margin-top: 2rem; }
  .pv-contents { margin-bottom: 2rem; }
  .pv-doc section + section { margin-top: 2.75rem; padding-top: 2.5rem; }
  .pv-doc p, .pv-doc li { font-size: 16px; line-height: 1.7; }
  .pv-reach div { grid-template-columns: minmax(0, 1fr); row-gap: 4px; }
  .pv-reach dd { grid-column: 1; }
  .pv-reach dd a { display: inline-block; padding: 8px 0; }
  .pv-table, .pv-table tbody, .pv-table tr, .pv-table th, .pv-table td { display: block; }
  .pv-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .pv-table tr { padding: 16px 0; border-bottom: 1px solid var(--c-line); }
  .pv-table tbody tr:first-child { border-top: 1px solid var(--c-line); }
  .pv-table tbody th, .pv-table td { padding: 0; border: 0; }
  .pv-table td { display: grid; grid-template-columns: 80px minmax(0, 1fr); column-gap: 12px; margin-top: 8px; }
  .pv-table td::before { content: attr(data-label); padding-top: 3px; font-family: var(--f-mono); font-size: 11px; line-height: 1.5; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-muted); }
}

@media (prefers-reduced-motion: reduce) { .pv-sign::before, .pv-sign::after { transition: none; } }
