@import url('/legal.css');
.legal-page { min-height: 100vh; }
.legal-page ul { padding-left: 24px; margin-top: 16px; }
.legal-page li { margin: 10px 0; }
.legal-page a { display: inline-block; min-height: 44px; padding-block: 8px; }
.legal-page footer { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.legal-page button { padding: 12px 20px; min-height: 44px; border: 1px solid #d5d8ce; border-radius: 8px; font: inherit; background: #f0ecdf; color: #61645c; }
.tool { margin-top: 24px; padding: 24px; border: 1px solid #d5d8ce; border-radius: 12px; }
.tool [hidden] { display: none; }
.tool button { color: #242622; cursor: pointer; }
.tool button:focus-visible { outline: 2px solid #315a42; outline-offset: 4px; }
.breath-visual { display: grid; place-items: center; height: 160px; }
.breath-circle { width: 128px; height: 128px; border-radius: 50%; background: #d5e0d4; transform: scale(.6); }
[data-running] .breath-circle { animation: breath 19s linear infinite; }
@keyframes breath { 0%, 100% { transform: scale(.6); } 21.0526%, 57.8947% { transform: scale(1); } }
#breath-timer { font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { .breath-visual { display: none; } .breath-circle { animation: none; } }

.tool fieldset { margin-top: 20px; padding: 0; border: 0; }
.tool-options { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tool-options label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 12px; border: 1px solid #d5d8ce; border-radius: 8px; cursor: pointer; }
.tool-options label:has(input:checked) { background: #d5e0d4; }
.tool-options input { accent-color: #315a42; }
.tool-options label:focus-within { outline: 2px solid #315a42; outline-offset: 2px; }
.step-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-block: 20px; }

[data-pattern="box"][data-running] .breath-circle { animation-name: box; animation-duration: 16s; }
@keyframes box { 0%, 75%, 100% { transform: scale(.6); } 25%, 50% { transform: scale(1); } }
.tool-grid { display: grid; gap: 16px; list-style: none; padding: 0 !important; }
.tool-grid li { margin: 0; }
.tool-grid a { display: block; height: 100%; padding: 20px; border: 1px solid #d5d8ce; border-radius: 12px; text-decoration: none; }
.tool-grid a:hover { background: #f0ecdf; }
.legal-page dialog { margin: auto; max-width: min(90vw, 440px); padding: 24px; border: 1px solid #d5d8ce; border-radius: 12px; background: #faf9f6; color: #242622; }
.legal-page dialog h2 { margin-top: 0; }
.legal-page dialog::backdrop { background: #24262266; }
@media (min-width: 620px) { .tool-grid { grid-template-columns: 1fr 1fr; } }
@media (prefers-reduced-motion: reduce) { [data-pattern="box"] .breath-circle { animation: none; } }
.legal-page button:not(:disabled) { cursor: pointer; color: #242622; }
.legal-page button:focus-visible { outline: 2px solid #315a42; outline-offset: 4px; }

.legal-page summary { cursor: pointer; min-height: 44px; padding-block: 12px; margin-top: 24px; }
